Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase to trunk #29

Draft
wants to merge 1,431 commits into
base: 20221105_no_http_host_pr
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1431 commits
Select commit Hold shift + click to select a range
05fd462
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 9, 2023
792f77b
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 9, 2023
3b68269
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 9, 2023
bf911a9
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 9, 2023
16041a3
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 9, 2023
a39e977
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 9, 2023
c23d9a7
General: Fix an error introduced in [56179].
audrasjb Jul 9, 2023
65381c9
Editor: Typo correction in Author block template description.
audrasjb Jul 9, 2023
03ff5a4
Editor: Ensure blocks registered within parent theme are available wh…
audrasjb Jul 10, 2023
f933aa3
Coding Standards: Use strict comparison in `wp-includes/class-wp-user…
SergeyBiryukov Jul 10, 2023
a92f7bf
Themes: Improved caching in `wp_theme_has_theme_json()`.
spacedmonkey Jul 10, 2023
8b8afa1
Filesystem API: Ensure `wp_tempnam()` does not produce file names lon…
azaozz Jul 10, 2023
b1775f3
Editor: Fix layout of no-js state in site editor.
joedolson Jul 10, 2023
57ab21f
Twenty Seventeen: Use `wp_register_script()` to register HTML5 Shiv s…
audrasjb Jul 10, 2023
bdc7d56
Media: Fix responsive views in image editor
joedolson Jul 10, 2023
a5352c3
Twenty Twenty-Three: Add a border to Quote block.
audrasjb Jul 10, 2023
3666c0e
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 10, 2023
2a66e49
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 10, 2023
add61a8
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 10, 2023
74d34d0
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 10, 2023
f80f37b
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 10, 2023
d7ddda1
Docs: Replace multiple single line comments with multi-line comments.
audrasjb Jul 10, 2023
5e14c43
Build/Test Tools: Prevent 404 errors in the E2E tests.
peterwilsoncc Jul 11, 2023
0c5e0df
Build/Test Tools: Suppress E2E test suite Slack notifications.
peterwilsoncc Jul 11, 2023
7813524
General: add nonce for block theme preview activation.
tellthemachines Jul 11, 2023
444bdf4
Editor: update string incorrectly marked for translation in Chrome.
tellthemachines Jul 11, 2023
eea94ad
General: fix botched file move in r56199.
tellthemachines Jul 11, 2023
a02886a
Editor: opt out of Navigation fallback.
tellthemachines Jul 11, 2023
488e431
I18n: Move translator comments inside `sprintf` for tagline field des…
audrasjb Jul 11, 2023
9b08513
Docs: Fix incorrect type for `$crop` param is various `WP_Image_Edito…
audrasjb Jul 11, 2023
efb0610
Editor: update npm packages with bug fixes and blessed tasks.
tellthemachines Jul 11, 2023
c21b63c
Editor: remove one preloaded navigation endpoint.
tellthemachines Jul 11, 2023
4e864a1
Bundled Theme: fix height of featured images in Twenty Twenty Three.
tellthemachines Jul 11, 2023
31fdf8f
Coding Standards: Use strict comparison in `wp-includes/rewrite.php`.
SergeyBiryukov Jul 11, 2023
154d340
Toolbar: Make the 'Edit site' link open the editor with the current t…
getsource Jul 11, 2023
252a2c1
Coding Standards: Use strict comparison in `wp-includes/class-wp-rewr…
SergeyBiryukov Jul 11, 2023
8c1b579
I18n: Improve the use of `dashicons-external` icon for external links.
audrasjb Jul 11, 2023
cb54fdb
Build/Test Tools: Reset main query object after each test.
joemcgill Jul 11, 2023
baec3f3
Revert package-lock.json changes committed by mistake in [56212].
joemcgill Jul 11, 2023
ed17473
Media: Optimize images created in shortcodes.
joemcgill Jul 11, 2023
ba1ac23
WordPress 6.3 Beta 4.
SergeyBiryukov Jul 11, 2023
effea66
Post WordPress 6.3 Beta 4 version bump.
SergeyBiryukov Jul 11, 2023
ee7434f
Editor: fix since annotation in rest blocks controller class.
tellthemachines Jul 12, 2023
4417367
General: Escape nonce used for block theme activation.
peterwilsoncc Jul 12, 2023
a8d1218
Coding Standards: Use strict comparison in `wp-includes/class-wp-netw…
SergeyBiryukov Jul 12, 2023
aa5f91a
Help/About: Add a “Get Involved” tab to the About page.
SergeyBiryukov Jul 12, 2023
434dd6b
Tests: Use assertSame() in Tests_Comment
aaronjorbin Jul 12, 2023
cdf3ac0
Coding Standards: Use single quotes for a string in `Tests_Comment`.
SergeyBiryukov Jul 12, 2023
65a048f
General: Introduce `all` development mode.
peterwilsoncc Jul 13, 2023
b892f51
General: Update Opera browser sniff follow UA string changes.
peterwilsoncc Jul 13, 2023
23a1516
Editor: fix duotone filters in classic themes.
tellthemachines Jul 13, 2023
fc53820
Editor: Lazily load Duotone settings only when needed.
spacedmonkey Jul 13, 2023
de6f518
Tests: Add tests to ensure the `contribute` Toolbar node is added whe…
SergeyBiryukov Jul 13, 2023
f4d2a15
Media: Set default state for image rotation button.
joedolson Jul 13, 2023
cfd3a6d
Editor: update npm packages with first round of bug fixes for 6.3 RC1.
tellthemachines Jul 14, 2023
ec42a73
Editor: fix typos in templates info.
tellthemachines Jul 14, 2023
2548797
Docs: Clarify where the `wp_get_development_mode()` value is retrieve…
SergeyBiryukov Jul 14, 2023
93bf3a1
Docs: Use consistent wording for development mode.
SergeyBiryukov Jul 14, 2023
21374c2
Help/About: Update “Get Involved” tab content with the latest edits.
SergeyBiryukov Jul 14, 2023
3dff98b
Help/About: Adjust horizontal padding on the tabs under 960 pixels wi…
SergeyBiryukov Jul 14, 2023
e77bf1e
Editir: Fix open_basedir warnings on the classic Edit Post screen whe…
azaozz Jul 14, 2023
118c369
Menus: Fix critical errors when the `page_on_front` and/or `page_for_…
azaozz Jul 14, 2023
9f80bbc
Help/About: Fix typo in [56171]: support forum "topic", not "ticket".
azaozz Jul 14, 2023
0ef8fa7
Coding Standards: Use strict comparison in `wp-includes/load.php`.
SergeyBiryukov Jul 15, 2023
83d8a63
Media: Improve layout of image rotation options panel.
joedolson Jul 15, 2023
ccce81f
Revert package-lock.json changes committed by mistake in [56239]
joedolson Jul 15, 2023
3349f1a
Bootstrap/Load: Require `wp-includes/compat.php` in `src/index.php`.
SergeyBiryukov Jul 16, 2023
9562f40
Media: Fix admin image editor layout at intermediary widths.
joedolson Jul 16, 2023
b4b0c03
Help/About: Fix closing contextual help when scrolled.
joedolson Jul 16, 2023
2beefda
Editor: trim footnote anchors from post excerpts.
tellthemachines Jul 17, 2023
8b5cfe0
Code Modernization: Use `str_contains()` in a few more places.
SergeyBiryukov Jul 17, 2023
967abef
Script Loader: Improve test coverage for `wp_print_scripts()`.
joemcgill Jul 17, 2023
fb98144
Build Tools: Remove outmoded jsvalidate task from Gruntfile.
kadamwhite Jul 17, 2023
7df1b83
Editor: Fix a PHP notice appearing when adding a new template part.
audrasjb Jul 17, 2023
be1cb45
General: Rename `wp_in_development_mode()` to `wp_is_development_mode…
joemcgill Jul 17, 2023
924df26
Media: Stop using and deprecate `set_imagick_time_limit()`. Seems it …
azaozz Jul 17, 2023
d36975a
Twenty Twenty-Three: Remove the `perPage` attribute where the query i…
azaozz Jul 17, 2023
36e8900
External Libraries: Update deprecated jQuery code in Farbtastic lib.
audrasjb Jul 17, 2023
2e64ff8
Twenty Twenty-Three: Revert [55898].
audrasjb Jul 17, 2023
2b931da
Editor: Fix bug where it was not possible to style custom block eleme…
felixarntz Jul 18, 2023
9520d9e
Editor: update npm packages with second round of bug fixes for 6.3 RC1.
tellthemachines Jul 18, 2023
3007128
Docs: Fix various incorrect `@since` mentions.
audrasjb Jul 18, 2023
3df7a53
Docs: Various docblocks corrections.
audrasjb Jul 18, 2023
d0b8f49
Upgrade/Install: Add correct parameters to add_option in upgrade_630
spacedmonkey Jul 18, 2023
b973822
Help/About: String changes in the Contribute screen.
audrasjb Jul 18, 2023
eb52f08
Coding Standards: Use strict comparison for static strings in `wp-adm…
SergeyBiryukov Jul 18, 2023
722f737
Administration: Add a missing closing `</span>` tag for column sortin…
SergeyBiryukov Jul 18, 2023
75caa9c
Editor: Add test for context setting in Comment Template block.
ockham Jul 18, 2023
53a51a0
Help/About: Update the About page for 6.3.
ryelle Jul 18, 2023
a0e2ecf
WordPress 6.3 RC1.
dream-encode Jul 18, 2023
d6f72ba
Post WordPress 6.3 RC1 version bump.
dream-encode Jul 18, 2023
6049e1f
Trunk is now 6.4 alpha.
getsource Jul 19, 2023
5c3c625
REST API: Update Global styles revisions private methods to protected.
audrasjb Jul 19, 2023
6281ce4
Docs: Add a missing word in `maybe_create_table()` description.
SergeyBiryukov Jul 19, 2023
287fd50
Media: Adjust PDF upload handling to remove non-opaque alpha channels…
antpb Jul 19, 2023
0c97999
Docs: Fix indentation issue in `WP_REST_Global_Styles_Revisions_Contr…
audrasjb Jul 19, 2023
cb42d72
Coding Standards: Correct equals sign alignment in various files.
SergeyBiryukov Jul 20, 2023
f4fa4dd
HTML-API: Introduce minimal HTML Processor.
ockham Jul 20, 2023
cc24245
I18N: Add missing translator comment in `WP_Upgrader::generic_strings…
SergeyBiryukov Jul 21, 2023
6028b6f
Media: Fix height max value in image scaling.
joedolson Jul 21, 2023
00777e6
General: Commit changes after running `precommit:css`.
desrosj Jul 21, 2023
c3e9e23
Coding Standards: Always use parentheses for class instantiation.
SergeyBiryukov Jul 22, 2023
f8e7a16
Media: Fix Image rotation button overflow in translations.
joedolson Jul 22, 2023
1f466b4
Coding Standards: Correct alignment in `wp-includes/media.php`.
SergeyBiryukov Jul 23, 2023
9bb963b
Editor: fix popover positioning.
tellthemachines Jul 24, 2023
20806d4
Coding Standards: Remove trailing tabs in `wp-admin/about.php`.
SergeyBiryukov Jul 24, 2023
53d8c7c
Editor: Fix abbreviations of "Example" in `block-template-utils.php`.
audrasjb Jul 24, 2023
743f743
Help/About: Add illustrations to the Get Involved tab
ryelle Jul 24, 2023
9c76395
Administration: Update dashboard welcome panel for 6.3.
ryelle Jul 24, 2023
a176f19
Help/About: Updates to About page.
ryelle Jul 24, 2023
1d7554d
Editor: load title on navigation fallback.
tellthemachines Jul 25, 2023
d7aff96
Editor: update npm packages with bug fixes for 6.3 RC2.
tellthemachines Jul 25, 2023
1d112a6
HTML API: Change `wp` infix in test classes to `Wp`.
ockham Jul 25, 2023
cea06cc
Twenty Twenty-One: Enable Dark Mode in the block editor iframe.
audrasjb Jul 25, 2023
d3ea5c2
Coding Standards: Always declare visibility for class methods.
SergeyBiryukov Jul 25, 2023
9e9ae1e
Editor: Fix conditionals in Template Editing Mode.
audrasjb Jul 25, 2023
d80d3e1
Build/Test Tools: Restore automatically retrying failed E2E tests once.
desrosj Jul 25, 2023
96a86d5
Help/About: Fix the Get Involved tab on Network Admin.
audrasjb Jul 25, 2023
2fc7435
Help/About: Update “Get involved in WordPress” link on the Credits tab.
SergeyBiryukov Jul 26, 2023
a0b15f3
Build/Test Tools: Run performance tests using production env vars.
joemcgill Jul 26, 2023
d15f776
Script Loader: Add support for `font-display: optional`.
joemcgill Jul 26, 2023
74c3dd2
Bundled Themes: Bump version numbers for WordPress 6.3.
audrasjb Jul 26, 2023
2c8315c
Editor: Prevent PHP warning when accessing icon by area.
audrasjb Jul 27, 2023
12a0205
Editor: Revert [56316].
audrasjb Jul 27, 2023
8698238
Coding Standards: Use correct case for class name in `WP_Http` tests.
SergeyBiryukov Jul 27, 2023
2c56eef
Editor: initial update of npm packages for 6.3 RC3.
tellthemachines Jul 28, 2023
d44c6e5
Coding Standards: Use strict comparison in `wp-includes/class-wp-role…
SergeyBiryukov Jul 28, 2023
73be680
Script Loader: Delay loading comment-reply script with async loading …
westonruter Jul 28, 2023
78e9478
Coding Standards: Use strict comparison in `wp-includes/feed-atom-com…
SergeyBiryukov Jul 29, 2023
c676279
Coding Standards: Use strict comparison in `wp-includes/formatting.php`.
SergeyBiryukov Jul 30, 2023
4569aa1
Coding Standards: Use strict comparison in `wp-includes/functions.php`.
SergeyBiryukov Jul 31, 2023
40dd2f9
Help/About: Make Contribute links translatable.
audrasjb Jul 31, 2023
39e1fb0
Editor: fix duplication in templates list.
tellthemachines Aug 1, 2023
41bffad
HTML API: Add support for SPAN element.
ockham Aug 1, 2023
2e0c5a8
Editor: second update of npm packages for 6.3 RC3.
tellthemachines Aug 1, 2023
e1355c1
Coding Standards: Use strict comparison in `wp-includes/option.php`.
SergeyBiryukov Aug 1, 2023
eb12d31
Help/About: Remove `target="_blank"` from the Contribute link.
audrasjb Aug 1, 2023
eef800d
Help/About: Escape "Contribute" links, for better consistency.
audrasjb Aug 1, 2023
5449353
Help/About: Add images to About page, match header style to images.
ryelle Aug 1, 2023
e39967d
Upgrade/Install: Pass stored credentials to `WP_Filesystem()` where a…
SergeyBiryukov Aug 1, 2023
70bbc8d
Themes: Use `isset` instead of `array_key_exists` in `WP_Theme_JSON` …
felixarntz Aug 1, 2023
3a3bd8e
Site Health: Use `PHP_SAPI` constant instead of the `php_sapi_name()`…
SergeyBiryukov Aug 2, 2023
02f9f1e
Media: Simplify logic in `wp_get_loading_optimization_attributes()`.
felixarntz Aug 2, 2023
88570fd
Tests: Fix leakage in WP_List_Table tests.
hellofromtonya Aug 2, 2023
c362c2a
Code Modernization: Deprecate dynamic properties in WP_List_Table mag…
hellofromtonya Aug 2, 2023
f8b4e2c
Build/Test Tools: revert downgrade of uuid.
tellthemachines Aug 3, 2023
b92491b
Coding Standards: Use `instanceof` keyword instead of the `is_a()` fu…
SergeyBiryukov Aug 3, 2023
6fe193c
Code Modernization: Deprecate dynamic properties in WP_User_Query mag…
hellofromtonya Aug 3, 2023
5b5d174
Code Modernization: Deprecate dynamic properties in WP_Text_Diff_Rend…
hellofromtonya Aug 3, 2023
1fc10c9
Script Loader: Use defer loading strategy for wp-embed script and mov…
westonruter Aug 3, 2023
9e4188b
Code Modernization: Use "declare" in WP_List_Table magic methods depr…
hellofromtonya Aug 3, 2023
4709117
Themes: Avoid unnecessary check whether parent template file exists w…
felixarntz Aug 3, 2023
72c9909
Emoji: Suppress console errors from sessionStorage usage in sandboxed…
westonruter Aug 4, 2023
8473280
Coding Standards: Use strict comparison in `wp-includes/revision.php`.
SergeyBiryukov Aug 4, 2023
fd84653
Coding Standards: Rewrite loose comparison in `wp_list_categories()`.
SergeyBiryukov Aug 5, 2023
b4cfea6
Coding Standards: Use strict comparison in `wp-includes/class-wp-imag…
SergeyBiryukov Aug 6, 2023
4a0712a
Coding Standards: Use strict comparison in `wp-includes/class-wp.php`.
SergeyBiryukov Aug 7, 2023
c96b089
HTML API: Adjust code styling to Gutenberg's linter's preferences.
ockham Aug 7, 2023
4ff71a6
Upgrade/Install: Update `$_old_files` for 6.3.
dream-encode Aug 7, 2023
79a36de
Options, Meta APIs: Expand `$autoload` parameter documentation.
felixarntz Aug 7, 2023
f7fbd0c
HTML API: Fix missing * for docblock.
aaronjorbin Aug 8, 2023
b1d5926
Coding Standards: Use strict comparison in `wp-includes/kses.php`.
SergeyBiryukov Aug 9, 2023
429de7a
Build/Test Tools: Bump the required versions of Node.js and npm.
desrosj Aug 9, 2023
d4b496a
Docs: Remove `@see` references for SimplePie classes.
SergeyBiryukov Aug 10, 2023
37b145a
HTML API: Add support for BUTTON element.
ockham Aug 10, 2023
e5b586b
Users: Correct the logic for `switch_to_blog()` in `WP_User_Query::ge…
SergeyBiryukov Aug 10, 2023
bb6de6b
Editor: Simplify usage of `block_has_support()` function by supportin…
felixarntz Aug 10, 2023
415c9f6
Embeds: Modernize wp-embed script with removal of obsolete IE10/IE11 …
westonruter Aug 10, 2023
1bd3cac
Tests: Correct two `@covers` annotations to use the recommended pattern.
SergeyBiryukov Aug 11, 2023
92521d7
Themes: add wp_get_theme_data_template_parts function.
oandregal Aug 11, 2023
27da228
Docs: Correct duplicate hook reference for `wp_min_priority_img_pixels`.
SergeyBiryukov Aug 11, 2023
25f0059
Build/Test Tools: Update the README file to reflect new Node.js/npm v…
desrosj Aug 11, 2023
8d56fac
Build/Test Tools: Update 3rd-party GitHub Actions.
desrosj Aug 11, 2023
0ca83e9
External Libraries: Update the `whatwg-fetch` polyfill library.
desrosj Aug 11, 2023
dd764d3
Build/Test Tools: Update all build tool related dependencies.
desrosj Aug 11, 2023
5fa0387
External Libraries: Update Backbone.js to version `1.5.0`.
desrosj Aug 11, 2023
78c78cb
Editor: Only exclude auto-generated block files from coding standards…
johnbillion Aug 11, 2023
0c96ba1
External Libraries: Update imagesLoaded to version `5.0.0`.
desrosj Aug 11, 2023
6929fd8
Coding Standards: Use strict comparison in `wp-includes/cron.php`.
SergeyBiryukov Aug 12, 2023
25443d3
Coding Standards: Bring more consistency to `Last-Modified` and `ETag…
SergeyBiryukov Aug 13, 2023
f107073
Coding Standards: Use strict comparison in `wp-admin/includes/class-w…
SergeyBiryukov Aug 14, 2023
f6dde69
Docs: Fix typo in duplicate hook references for `views_{$this->screen…
SergeyBiryukov Aug 15, 2023
5fab140
Editor: Use defer loading strategy for block view scripts.
westonruter Aug 16, 2023
59a4df1
Build/Test Tools: Measure additional load time metrics in performance…
swissspidy Aug 16, 2023
8cd9907
Coding Standards: Use strict comparison in `wp-admin/includes/image-e…
SergeyBiryukov Aug 16, 2023
3131800
Site Health: Correct the check for disk space available to safely per…
SergeyBiryukov Aug 17, 2023
cc828e2
Build/Test Tools: Simplify the required prerequisite jobs for the `fa…
desrosj Aug 17, 2023
2bd2a2f
Editor: Ensure defer loading strategy is only applied to a block's vi…
westonruter Aug 17, 2023
d3f193f
Build/Test Tools: Don’t send a Slack notice when a workflow fails once.
desrosj Aug 17, 2023
7cd8918
Build/Test Tools: Use the correct variable for checking the previous …
desrosj Aug 17, 2023
dca4cc0
Build/Test Tools: Send a failure notice in Slack when a run fails to …
desrosj Aug 17, 2023
5b517ae
Build/Test Tools: Revert Slack messaging changes.
desrosj Aug 17, 2023
c60cfe9
Administration: Add function to standardize admin notices.
joedolson Aug 17, 2023
8ef1118
Administration: Apply admin notice functions in multisite.
joedolson Aug 17, 2023
2acd0ac
Administration: Invalid argument passed in additional_classes.
joedolson Aug 17, 2023
79b01c6
Coding Standards: Improve variable names in `wp_save_image()`.
SergeyBiryukov Aug 18, 2023
e42bd86
Add missing `@` to the return tag in the `wp_get_theme_data_template_…
oandregal Aug 18, 2023
9110074
Themes: add `wp_get_theme_data_custom_templates` function.
oandregal Aug 18, 2023
7aee3d3
Docs: Miscellaneous docblock corrections and improvements.
johnbillion Aug 18, 2023
9bb4369
REST API: Correct the docblocks for various permission related methods.
johnbillion Aug 18, 2023
dde16aa
Media: Standardise documentation of the `$crop` parameter for various…
johnbillion Aug 18, 2023
d1f72a6
Revert the last use of `str_starts_with()` in `update-core.php`.
azaozz Aug 18, 2023
5d466a4
Docs: Correct punctuation in some instances of the `$crop` parameter …
SergeyBiryukov Aug 19, 2023
cfe5a1e
Editor: update npm packages with critical bug fixes for 6.3.1.
tellthemachines Aug 19, 2023
9b8a0d2
Coding Standards: Use strict comparison in `wp-admin/includes/meta-bo…
SergeyBiryukov Aug 20, 2023
f0d53f8
Build/Test Tools: Update PHPUnit Polyfills to version 1.1.0.
SergeyBiryukov Aug 21, 2023
17e9e69
Editor: Fix error handling of converting classic to block menus.
hellofromtonya Aug 21, 2023
5a99ab4
Posts, Post Types: Remove redundant function calls in `get_body_class…
SergeyBiryukov Aug 22, 2023
bf00a67
Coding Standards: Use strict comparison in `wp-includes/ms-files.php`.
SergeyBiryukov Aug 23, 2023
ef0e58b
Docs: Add missing @param description in `WP_Comment` class.
audrasjb Aug 24, 2023
e7dd83b
Docs: Wrap inline `@see` tags in curly braces.
audrasjb Aug 24, 2023
07b5588
Docs: Use third-person singular verbs in various function description…
audrasjb Aug 24, 2023
7faabe4
Docs: Clarify `post_date_column_time` filter description.
audrasjb Aug 24, 2023
f4b36d8
Revisions: Add missing escaping function for `$post_edit_link` in `wp…
audrasjb Aug 24, 2023
f0ff124
Coding Standards: Use strict comparison in `wp-includes/ms-site.php`.
SergeyBiryukov Aug 24, 2023
a00b04b
Build/Test Tools: Expand database testing to account for all supporte…
desrosj Aug 24, 2023
c2ae255
Build/Test Tools: Merge pre-commit changes missed in [56439].
desrosj Aug 24, 2023
222af98
Docs: Correct default post type in `page_template_dropdown()` docblock.
audrasjb Aug 24, 2023
35f7b9e
Build/Test Tools: Change the version of Node.js in the Codespaces con…
desrosj Aug 24, 2023
416d1a8
Build/Test Tools: Implicitly pass secrets to the called workflow.
desrosj Aug 24, 2023
c63e32f
Build/Tests: Tests_Formatting_MakeClickable should use data providors
aaronjorbin Aug 24, 2023
81423c3
Options, Meta APIs: Introduce `prime_options()` to load multiple opti…
Aug 24, 2023
2cdaf29
Plugins: Correctly display spaces in new plugins search results.
swissspidy Aug 24, 2023
40df0ec
Bundled Theme: Twenty Nineteen: Improve social media icon dimension a…
peterwilsoncc Aug 24, 2023
c10caf9
Rewrite Rules: Prevent stampedes when flush_rewrite_rules() is called
joemcgill Aug 24, 2023
b21d72b
Menus: Fix proximity of controls to Save and Delete menus.
joedolson Aug 24, 2023
1db3113
Menus: Revert unintentional changes in [56449].
Aug 24, 2023
179ac0c
Bundled Themes: Ensure that pull quotes are able to use the correct font
whyisjake Aug 24, 2023
f435b0d
Media: Add a filter to the `get_available_post_mime_types()` function…
johnbillion Aug 24, 2023
0d04972
Build/Test: Revert unintentional .env change in [56449].
joedolson Aug 24, 2023
1fc1e9c
Login and Registration: Improve test coverage for sign on related fun…
aaronjorbin Aug 24, 2023
0c82e15
Performance: Add fallback for `$script_uri` to prevent firing `plugin…
antpb Aug 24, 2023
b1f5563
Administration: Escape post type output as field attribute.
peterwilsoncc Aug 24, 2023
095617e
Editor: Optimize `wp_get_block_css_selector` to remove `array_merge` …
dream-encode Aug 24, 2023
1f66a06
General: Use regular core button styles for page header actions.
TimothyBJacobs Aug 24, 2023
e82474c
REST API: Remove misleading comment in WP_REST_Blocks_Controller->get…
kadamwhite Aug 24, 2023
dfda67a
Help/About: Match icon and text in Help for bulk edit button.
joedolson Aug 24, 2023
f085426
Build Tools: Avoid doing `copy:dynamic` when running `grunt watch` wh…
westonruter Aug 24, 2023
a84270a
Customizer: use the correct `X-Robots-Tag` header.
adamsilverstein Aug 24, 2023
218fbd9
Block Editor: Update SVN props to ignore new asset files.
peterwilsoncc Aug 24, 2023
a8a0bf0
Build/Test Tools: Ensure database containers are prepared for commands.
desrosj Aug 24, 2023
a5e6100
Coding Standards: Use strict comparison in `wp-includes/class-wp-widg…
SergeyBiryukov Aug 25, 2023
4ef1036
Introduce a `_deprecated_class()` function.
DrewAPicture Aug 25, 2023
515634f
Fix coding standards for translatable `_deprecated_class()` message s…
DrewAPicture Aug 25, 2023
8fd9604
Properly deprecate both constructors in `WP_User_Search`.
DrewAPicture Aug 25, 2023
2f76410
Fix coding standards for `Tests_Admin_wpUserSearch`
DrewAPicture Aug 25, 2023
73f7ecc
Docs: Docblock improvements in `_deprecated_class()` function, as per…
audrasjb Aug 25, 2023
e0e36e6
Docs: Improve PHPCS comments general consistency.
audrasjb Aug 25, 2023
7f38f68
Upgrade/Install: Add missing escaping function for `get_option( 'home…
audrasjb Aug 25, 2023
7ed2467
Docs: Fix typo in a translator comment in `_deprecated_class()`.
SergeyBiryukov Aug 26, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// For format details, see https://aka.ms/devcontainer.json.
{
"name": "WordPress Core Development",
"dockerComposeFile": "docker-compose.yml",
"service": "app",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"username": "wordpress"
},
"ghcr.io/devcontainers/features/node:1": {
"version": "16"
},
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
"ghcr.io/devcontainers/features/git:1": {}
},
"onCreateCommand": "sudo chmod +x .devcontainer/install-tools.sh && .devcontainer/install-tools.sh",
"postCreateCommand": "sudo chmod +x .devcontainer/setup.sh && .devcontainer/setup.sh",
"forwardPorts": [
8080
],
"remoteUser": "wordpress"
}
29 changes: 29 additions & 0 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: '3.1'

services:
app:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
volumes:
- ../..:/workspaces:cached

db:
image: mariadb
restart: unless-stopped
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql

volumes:
db:
15 changes: 15 additions & 0 deletions .devcontainer/install-tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

set -eux

echo "Installing wp-cli..."
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
sudo chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp

echo "Installing chromium..."
sudo apt-get update
sudo apt-get -y install --no-install-recommends chromium

# Copy the welcome message
sudo cp .devcontainer/welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt
18 changes: 18 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

set -eux

if [ -z ${CODESPACE_NAME+x} ]; then
SITE_HOST="http://localhost:8080"
else
SITE_HOST="https://${CODESPACE_NAME}-8080.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}"
fi

# Install dependencies
cd /workspaces/wordpress-develop
npm install && npm run build:dev

# Install WordPress and activate the plugin/theme.
cd /var/www/html
echo "Setting up WordPress at $SITE_HOST"
wp core install --url="$SITE_HOST" --title="WordPress Trunk" --admin_user="admin" --admin_email="[email protected]" --admin_password="password" --skip-email
6 changes: 6 additions & 0 deletions .devcontainer/welcome-message.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
👋 Welcome to "WordPress Core Development" in Codespaces!

🛠️ Your environment is fully setup with all the required software.

🚀 To get started, wait for the "postCreateCommand" to finish setting things up, then open the portforwarded URL and append '/wp-admin'.

1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ LOCAL_WP_DEBUG_LOG=true
LOCAL_WP_DEBUG_DISPLAY=true
LOCAL_SCRIPT_DEBUG=true
LOCAL_WP_ENVIRONMENT_TYPE=local
LOCAL_WP_DEVELOPMENT_MODE=core

# The URL to use when running e2e tests.
WP_BASE_URL=http://localhost:${LOCAL_PORT}
71 changes: 37 additions & 34 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
# Runs PHP coding standards checks.
#
Expand All @@ -48,35 +52,32 @@ jobs:
# Performs the following steps:
# - Checks out the repository.
# - Sets up PHP.
# - Logs debug information.
# - Configures caching for PHPCS scans.
# - Installs Composer dependencies (use cache if possible).
# - Installs Composer dependencies.
# - Make Composer packages available globally.
# - Logs PHP_CodeSniffer debug information.
# - Runs PHPCS on the full codebase with warnings suppressed.
# - Generate a report for displaying issues as pull request annotations.
# - Runs PHPCS on the `tests` directory without warnings suppressed.
# - Generate a report for displaying `test` directory issues as pull request annotations.
# - Ensures version-controlled files are not modified or deleted.
phpcs:
name: PHP coding standards
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}

steps:
- name: Checkout repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- name: Set up PHP
uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2.22.0
uses: shivammathur/setup-php@d30ad8b1843ace22e6698ab99bbafaa747b6bd0d # v2.24.0
with:
php-version: '7.4'
coverage: none
tools: composer, cs2pr

- name: Log debug information
run: |
php --version
composer --version
tools: cs2pr

# This date is used to ensure that the PHPCS cache is cleared at least once every week.
# http://man7.org/linux/man-pages/man1/date.1.html
Expand All @@ -85,33 +86,34 @@ jobs:
run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT

- name: Cache PHPCS scan cache
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
with:
path: .cache/phpcs.json
path: |
.cache/phpcs-src.json
.cache/phpcs-tests.json
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}

# Since Composer dependencies are installed using `composer update` and no lock file is in version control,
# passing a custom cache suffix ensures that the cache is flushed at least once per week.
- name: Install Composer dependencies
uses: ramsey/composer-install@83af392bf5f031813d25e6fe4cd626cdba9a2df6 # v2.2.0
with:
composer-options: "--no-progress --no-ansi"
custom-cache-suffix: ${{ steps.get-date.outputs.date }}

- name: Make Composer packages available globally
run: echo "${PWD}/vendor/bin" >> $GITHUB_PATH

- name: Log PHPCS debug information
run: phpcs -i

- name: Run PHPCS on all Core files
id: phpcs-core
run: phpcs -n --report-full --report-checkstyle=./.cache/phpcs-report.xml
run: phpcs -n --report-full --cache=./.cache/phpcs-src.json --report-checkstyle=./.cache/phpcs-report.xml

- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs-core.outcome == 'failure' }}
run: cs2pr ./.cache/phpcs-report.xml

- name: Check test suite files for warnings
id: phpcs-tests
run: phpcs tests --report-full --report-checkstyle=./.cache/phpcs-tests-report.xml
run: phpcs tests --report-full --cache=./.cache/phpcs-tests.json --report-checkstyle=./.cache/phpcs-tests-report.xml

- name: Show test suite scan results in PR
if: ${{ always() && steps.phpcs-tests.outcome == 'failure' }}
Expand All @@ -126,33 +128,27 @@ jobs:
#
# Performs the following steps:
# - Checks out the repository.
# - Sets up Node.js.
# - Logs debug information about the GitHub Action runner.
# - Installs Node.js.
# - Logs updated debug information.
# _ Installs npm dependencies.
# - Installs npm dependencies.
# - Run the WordPress JSHint checks.
# - Ensures version-controlled files are not modified or deleted.
jshint:
name: JavaScript coding standards
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 20
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }}

steps:
- name: Checkout repository
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

- name: Log debug information
run: |
npm --version
node --version
git --version
svn --version
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2

- name: Install Node.js
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
- name: Set up Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version-file: '.nvmrc'
cache: npm
Expand All @@ -161,8 +157,10 @@ jobs:
run: |
npm --version
node --version
git --version
svn --version

- name: Install Dependencies
- name: Install npm Dependencies
run: npm ci

- name: Run JSHint
Expand All @@ -174,6 +172,9 @@ jobs:
slack-notifications:
name: Slack Notifications
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
permissions:
actions: read
contents: read
needs: [ phpcs, jshint ]
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
with:
Expand All @@ -187,6 +188,8 @@ jobs:
failed-workflow:
name: Failed workflow tasks
runs-on: ubuntu-latest
permissions:
actions: write
needs: [ phpcs, jshint, slack-notifications ]
if: |
always() &&
Expand All @@ -200,7 +203,7 @@ jobs:

steps:
- name: Dispatch workflow run
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
with:
retries: 2
retry-exempt-status-codes: 418
Expand Down
Loading