Commit Graph

50274 Commits

Author SHA1 Message Date
Peter Wilson
37b16304d7 Script Loader: Correct the number of arguments passed to WP_Styles::get_etag().
This fixes an issue with the usage of the new `$wp_styles->get_etag()` method in `wp-admin/load-styles.php`, where `$wp_version` is passed as the first argument instead of `$load` being used as the ''only'' argument.

Follow-up to [58935].

Reviewed by swissspidy.
Merges [59341] to the 6.7 branch.

Props justlevine, mukesh27, swissspidy, SergeyBiryukov.
See #52217, #61485.


Built from https://develop.svn.wordpress.org/branches/6.7@59343


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-04 23:36:16 +00:00
Andrew Ozz
0405629247 Editor: Update packages for 6.7 RC 3
Syncs @wordpress/* packages to the wp-6.7 npm tag.

Reviewed by get_dave, azaozz.
Merges [59339] to the 6.7 branch.

Props kevin940726, get_dave.
Fixes #62321.
Built from https://develop.svn.wordpress.org/branches/6.7@59342


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-04 19:46:30 +00:00
Peter Wilson
92c3cda921 Editor: Update packages for 6.7 RC 3
Syncs `@wordpress/*` packages to the `wp-6.7` npm tag.

Reviewed by andrewserong.
Merges [59330] to the 6.7 branch.

Props kevin940726, ramonopoly, andrewserong.
See #62321.


Built from https://develop.svn.wordpress.org/branches/6.7@59332


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-31 22:15:30 +00:00
desrosj
852039442a Bundled Themes: Update Twenty Twenty-Five for 6.7 RC 2.
This merges the latest improvements to the Twenty Twenty-Five theme from GitHub into WordPress-Develop for 6.7 RC 2

A full list of changes can be found on GitHub: [7dfa99f15b...b5b0475f6a WordPress/twentytwentyfive@7dfa99f1...b5b0475f].

Reviewed by desrosj.
Merges [59314] to the 6.7 branch.

Props juanfra, poena.
Fixes #62310.
Built from https://develop.svn.wordpress.org/branches/6.7@59331


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-31 17:57:19 +00:00
Peter Wilson
560bd94c82 Tests/Build tools: Only fail importer tests if plugin is missing.
Reverts an earlier change to the test suite in which the PHPUnit tests could not run if the importer plugin was not available.

This update allows the test suite to run and will fail importer tests if the plugin is not available. 

Follow up to r59085.

Merges [59326] to the 6.7 branch.

Props peterwilsoncc, azaozz.
See #62325.


Built from https://develop.svn.wordpress.org/branches/6.7@59327


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-30 23:47:20 +00:00
Peter Wilson
c9462062a6 Global styles: preload /global-styles endpoint responses
This commit fixes a regression whereby requests to global styles endpoints were not being preloaded, resulting in several requests being fired clientside unnecessarily.  

For performance reasons, we  preload the requests so that the data is in the editor store and ready to use straight away.  

The outcome is that the editor loads more quickly.

Follow-up to [62042].

Reviewed by peterwilsoncc.
Merges [59316] to the 6.7 branch.

Props ellatrix, ramonopoly, apermo, peterwilsoncc.
Fixes #62315.


Built from https://develop.svn.wordpress.org/branches/6.7@59324


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 22:55:17 +00:00
Aaron Jorbin
d91fbfad55 Post WordPress 6.7 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59323


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 17:07:21 +00:00
Sergey Biryukov
218cf8089b Comments: Use a more precise check for disallowed keys on filtered comment data.
The previous approach of running `wp_allow_comment()` twice could have unintended consequences, e.g. the `check_comment_flood` action was also triggered twice, which might lead to false-positive identification of comment flood in case there is some custom callback hooked to it, which is not expecting identical data seeing twice.

This commit introduces a new function, `wp_check_comment_data()`, to specifically check for disallowed content before and after comment data is filtered.

Follow-up to [59267].

Reviewed by davidbaumwald.
Merges [59319] to the 6.7 branch.

Props david.binda, SergeyBiryukov.
Fixes #61827.
Built from https://develop.svn.wordpress.org/branches/6.7@59322


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 16:35:17 +00:00
Aaron Jorbin
b3c1dfabd4 Editor: Update packages for 6.7 RC 2
Syncs @wordpress/* packages to the wp-6.7 npm tag.

Reviewed by jorbin.
Merges [59318] to 6.7 branch.

Props kevin940726, aaronrobertshaw.
See #62309.

Built from https://develop.svn.wordpress.org/branches/6.7@59321


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 16:28:27 +00:00
Aaron Jorbin
1200804e11 WordPress 6.7 RC2.
Built from https://develop.svn.wordpress.org/branches/6.7@59320


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 16:14:16 +00:00
Peter Wilson
2f988c78b6 Revisions: Fix typo in navigation help text.
Fixes a typo in the a11y helper text explaining how to navigate revisions. "Change revision by using the left and arrow keys" becomes "Change revision by using the left and right arrow keys".

Follow up to [59225].

Reviewed by swissspidy.
Merges [59306] to the 6.7 branch.

Props pedromendonca, sabernhardt, fierevere, swissspidy.
Fixes #62306.



Built from https://develop.svn.wordpress.org/branches/6.7@59313


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 21:26:18 +00:00
desrosj
aea47f2bb5 Build/Test Tools: Support Docker compose override files.
This updates the logic introduced in [59279] to account for the presence of `docker-compose.override.yml` files.

Reviewed by peterwilsoncc.
Merges 59283] to the 6.7 branch.

Props xknown, davidbaumwald.
See #61218.
Built from https://develop.svn.wordpress.org/branches/6.7@59311


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 18:13:16 +00:00
desrosj
4e8ce277f7 Build/Test Tools: Test against MySQL 8.4 in automated testing.
Additionally, MySQL 8.1, 8.2 and 8.3 have been removed. These were “innovation releases” and are no longer supported in favor of 8.4, which has LTS.

Reviewed by peterwilsoncc.
Merges [59280] to the 6.7 branch.

Props ayeshrajans, johnbillion, aristath, jorbin.
See #61218.
Built from https://develop.svn.wordpress.org/branches/6.7@59310


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 18:10:18 +00:00
desrosj
0bc304103f Build/Test Tools: Add MySQL 8.4 support to the Docker environment.
Because `caching_sha2_password` is not supported on PHP 7.2 & 7.3, the local Docker environment has used the `--default-authentication-plugin` system variable to always make use of `mysql_native_password` despite MySQL 8.0 deprecating this auth plugin.

However in MySQL 8.4, the `--default-authentication-plugin` option was removed in favor of `--authentication-policy`, and `mysql_native_password` is now disabled by default. `mysql_native_password` has also been removed in MySQL 9.0.

This change adds support to the local Docker environment for MySQL 8.4 by adding some helper functions that determine which authentication plugin should be used based on the configured PHP/MySQL versions and automatically making the necessary configuration adjustments. 

Reviewed by peterwilsoncc. 
Merges [59279] to the 6.7 branch.

Props ayeshrajans, johnbillion, aristath, jorbin.
See #61218.
Built from https://develop.svn.wordpress.org/branches/6.7@59309


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 17:38:21 +00:00
Peter Wilson
f7ae536731 Editor: Update packages for 6.7 RC 2
Syncs `@wordpress/*` packages to the `wp-6.7` npm tag.

Reviewed by peterwilsoncc.
Merges [59307] to the 6.7 branch.

Props kevin940726, peterwilsoncc.
See #62309.

Built from https://develop.svn.wordpress.org/branches/6.7@59308


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 05:06:26 +00:00
Peter Wilson
ce2064a69a Tests: Use better domain for HTTP API invalid hostname test.
The previous domain that was used to test for a host whose IPv4 address cannot be resolved, `exampleeeee.com`, got registered and has an A-record now, so it's not invalid anymore.

`.invalid` is intended for use in online construction of domain names that are sure to be invalid and which it is obvious at a glance are invalid.

Reference: [https://datatracker.ietf.org/doc/html/rfc2606#section-2 Reserved Top Level DNS Names: TLDs for Testing, & Documentation Examples].

Follow-up to [52084], [58384], [58388].

Reviewed by peterwilsoncc.
Merges [59293] to the 6.7 branch.

Props sippis, johnbillion, MattyRob, swissspidy, SergeyBiryukov.
Fixes #62303.



Built from https://develop.svn.wordpress.org/branches/6.7@59297


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-27 22:19:16 +00:00
Peter Wilson
33f62d1dcb Site Health: Update inline docs following refactor of debug data.
Updates the inline docs following the modularization of the `WP_Debug_Data`.

Reviewed by swissspidy.
Merges [59290] to the 6.7 branch.

Props kebbet, desrosj, apermo.
Fixes #61648.



Built from https://develop.svn.wordpress.org/branches/6.7@59296


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-27 21:59:12 +00:00
Peter Wilson
0c4d743c9b Editor: Update Google Fonts API endpoint for WordPress 6.7.
Updates the Google Fonts API to use the URL `https://s.w.org/images/fonts/wp-6.7/collections/google-fonts-with-preview.json` with an updated collection of fonts available for install.

Reviewed by swissspidy.
Merges [59286] to the 6.7 branch.

Props dilip2615, mmaattiiaass, wildworks, dd32.
Fixes #62258.



Built from https://develop.svn.wordpress.org/branches/6.7@59295


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-27 21:57:10 +00:00
Peter Wilson
48030e4dbf Bundled Themes: Provide instructions for updating comment block in TT2.
Adds instructions to the Twenty Twenty-Two readme file for updating the comment block from the legacy version to the newer version introduced in WordPress 6.1.

As Twenty Twenty-Two supports WordPress version prior to 6.1, the legacy comment block is used by default.

Reviewed by swissspidy.
Merges [59289] to the 6.7 branch.

Props desrosj, jeffpaul, joedolson, mikachan, mrfoxtalbot, mukesh27, poena, ryokuhi, sabernhardt, thrijith.
Fixes #56496.


Built from https://develop.svn.wordpress.org/branches/6.7@59294


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-27 21:55:55 +00:00
Aaron Jorbin
fa5acb8e7a Branch 6.7
Built from https://develop.svn.wordpress.org/branches/6.7@59274


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-22 16:53:16 +00:00
Aaron Jorbin
885b0a7b78 Post WordPress 6.7 RC1 version bump.
Built from https://develop.svn.wordpress.org/trunk@59273


git-svn-id: http://core.svn.wordpress.org/trunk@58665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-22 16:40:16 +00:00
Aaron Jorbin
5087acab42 WordPress 6.7 RC1.
Built from https://develop.svn.wordpress.org/trunk@59272


git-svn-id: http://core.svn.wordpress.org/trunk@58664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-22 16:17:15 +00:00
desrosj
2071ba2e17 Bundled Themes: Sync a few more Twenty Twenty-Five updates for RC1.
This merges 2 bug fixes for the Twenty Twenty-Five theme from GitHub.

Follow up to [59269].

Props poena, beafialho, juanfra.
Fixes #62264.
Built from https://develop.svn.wordpress.org/trunk@59271


git-svn-id: http://core.svn.wordpress.org/trunk@58663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-22 15:56:16 +00:00
Sergey Biryukov
0c8459d726 Site Health: Add a link to support forums in the message displayed for a critical error.
Follow-up to [44962], [45263], [46119], [49480], [53951].

Props ipajen, sabernhardt, desrosj, mukesh27, afragen, webcommsat, hellofromTonya.
Fixes #53707.
Built from https://develop.svn.wordpress.org/trunk@59270


git-svn-id: http://core.svn.wordpress.org/trunk@58662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-22 10:16:16 +00:00
Peter Wilson
ad69175f95 Bundled Themes: Update Twenty Twenty-Five for 6.7 RC 1.
This merges the latest improvements to the Twenty Twenty-Five theme from GitHub into `trunk` for 6.7 RC 1.

A full list of changes can be found on GitHub: [e4da8ad0ae...f2dc3facf9 WordPress/twentytwentyfive@e4da8ad...f2dc3fa]

Props juanfra, poena, beafialho, areziaal, joen, sergeybiryukov, richtabor, cwhitmore, get_dave, talldanwp, andraganescu, kau-boy, mhkuu, hanneslsm, alaminfirdows, dd32.
See #62264.




Built from https://develop.svn.wordpress.org/trunk@59269


git-svn-id: http://core.svn.wordpress.org/trunk@58661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-22 01:43:17 +00:00
isabel_brison
1a1d6c9ea8 Editor: new package updates for 6.7 RC1.
Syncs packages to include two further bug fixes.

Props isabel_brison, peterwilsoncc.
Fixes #62271.

Built from https://develop.svn.wordpress.org/trunk@59268


git-svn-id: http://core.svn.wordpress.org/trunk@58660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-22 00:32:19 +00:00
Sergey Biryukov
4318418b39 Comments: Validate new comments before and after comment data is filtered.
This ensures that a Disallowed Comment Keys match will consistently send the comment to the Trash, by checking both the original unmodified comment data and the final filtered comment data.

If the first check has already resulted in a `trash` or `spam` status, the second check is skipped as redundant.

Follow-up to [2894], [3851], [48121], [48575].

Props cfinke, kbrownkd, thompsonsj, mi5t4n, devspace, chaion07, engahmeds3ed, SergeyBiryukov.
Fixes #61827.
Built from https://develop.svn.wordpress.org/trunk@59267


git-svn-id: http://core.svn.wordpress.org/trunk@58659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-21 23:07:15 +00:00
Peter Wilson
5284afbd22 Help/About: Update version name in performance string.
Updates the version from `6.7` to `WordPress 6.7` in the performance string for consistency with other mentions on the about page.

Props ryelle, peterwilsoncc.
See #61961.

Built from https://develop.svn.wordpress.org/trunk@59266


git-svn-id: http://core.svn.wordpress.org/trunk@58658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-21 22:40:17 +00:00
joedolson
4b347a2e56 Menus: A11y: Set the parent and order using select fields.
Add `select` inputs to allow users to set the parent and position of items in the menu settings. Fixes a significant problem for screen reader users that makes updating menus extremely tedious, since the options for moving items do not explicitly set a position. This is also a significant improvement for all users manipulating large menus.

This could easily be considered an enhancement, but while it is a minor enhancement for most users, it is transformative for screen reader users in managing menus, moving that interface from nearly unusable to very manageable.

Props javad2000, audrasjb, juliemoynat, williamalexander, rcreators, milamj, joedolson. 
Fixes #43305.
Built from https://develop.svn.wordpress.org/trunk@59265


git-svn-id: http://core.svn.wordpress.org/trunk@58657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-21 19:55:16 +00:00
Pascal Birchler
bdea1930c7 I18N: Fix script languages path on Multisite.
This is a follow-up to [59126] (itself a follow-up to [57922]), which caused a regression when determining the right path when loading script translations.

Props swissspidy, themes-1, staurand.
Fixes #62016.
Built from https://develop.svn.wordpress.org/trunk@59264


git-svn-id: http://core.svn.wordpress.org/trunk@58656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-21 14:13:14 +00:00
get_dave
224824fb85 Editor: Update packages for 6.7 RC 1.
Syncs @wordpress/* packages to the wp-6.7 npm tag.

Props get_dave, kevin940726, rejaulalomkhan.

Fixes #62263
Built from https://develop.svn.wordpress.org/trunk@59263


git-svn-id: http://core.svn.wordpress.org/trunk@58655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-21 11:23:29 +00:00
ramonopoly
339ee19db1 Theme JSON: remove redundant styles check and relocate $selectors assignment.
In `WP_Theme_JSON::get_block_nodes()`, remove redundant check for `$theme_json['styles']`, which means `WP_Theme_JSON::get_blocks_metadata()` is only called if necessary.

Also skip unnecessary `$selector` assignment if only nodes are to be returned.

Props ramonopoly, mukesh27.  
Fixes #62234.



Built from https://develop.svn.wordpress.org/trunk@59262


git-svn-id: http://core.svn.wordpress.org/trunk@58654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-21 04:48:16 +00:00
Peter Wilson
b571e7c6f1 Taxonomy: Remove count argument from WP_Term_Query docs.
The DocBlock of `WP_Term_Query::__construct` mentions the count argument, however, this argument is not supported in `WP_Term_Query::get_terms()`.

Props sergeybiryukov, swissspidy, snehapatil02, tyrannous.
Fixes #61094.

Built from https://develop.svn.wordpress.org/trunk@59261


git-svn-id: http://core.svn.wordpress.org/trunk@58653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-21 01:22:17 +00:00
Peter Wilson
5cdf55fda7 Editor: Load all style variation fonts within the editors.
Loads the font family files from style variations defined within a theme for user in the site and post editors. This is to ensure the fonts are shown while editing without the need for a reload after switching styles.

Props ironprogrammer, mmaattiiaass.
Fixes #62231.



Built from https://develop.svn.wordpress.org/trunk@59260


git-svn-id: http://core.svn.wordpress.org/trunk@58652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-20 23:25:16 +00:00
Sergey Biryukov
a67b37192f Editor: Replace id attribute with class in WP_Font_Face::get_style_element().
`wp_print_font_faces()` prints an HTML tag that can be used more than once, so the document could end up having multiple tags with the same `id` attribute.

The `id` global attribute defines an identifier (ID) which must be unique in the whole document.

Reference: [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id MDN Web Docs: id].

Follow-up to [56500].

Props mmaattiiaass, peterwilsoncc.
Fixes #62246.
Built from https://develop.svn.wordpress.org/trunk@59259


git-svn-id: http://core.svn.wordpress.org/trunk@58651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-20 13:13:15 +00:00
Sergey Biryukov
05b4e2e094 Docs: Fix typo in a comment in WP_Rewrite::refresh_rewrite_rules().
Includes adjusting the method DocBlock per the documentation standards.

Follow-up to [56448].

See #61608.
Built from https://develop.svn.wordpress.org/trunk@59258


git-svn-id: http://core.svn.wordpress.org/trunk@58650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-19 23:54:18 +00:00
Andrew Ozz
e52423e435 Upgrade/Install: Return WP_Error when source files cannot be found.
Fixes a fatal error in `array_keys()` (PHP 8.0+) as `$wp_filesystem->dirlist()` will return `false` when the source directory doesn't exist or becomes unreadable for some reason.

Props: verygoode, lifelightweb, da5f656f, costdev, afragen, azaozz
Fixes #61114
Built from https://develop.svn.wordpress.org/trunk@59257


git-svn-id: http://core.svn.wordpress.org/trunk@58649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-18 23:37:20 +00:00
Joe McGill
5c8c27b24b Editor: Cache global styles for blocks.
This caches the generated CSS from block nodes in merged Theme JSON data to avoid repeated costly operations required to compute style properties for blocks. The generated CSS is saved to a transient that expires every hour.

This is a follow-up that reimplements [58334], which was previously reverted in [58710].

Props thekt12, spacedmonkey, pereirinha, mukesh27, isabel_brison, oandregal, andrewserong, ramonjd, joemcgill, costdev, aaronrobertshaw, peterwilsoncc.
Fixes #61679. See #59595.

Built from https://develop.svn.wordpress.org/trunk@59256


git-svn-id: http://core.svn.wordpress.org/trunk@58648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-18 21:55:18 +00:00
Sergey Biryukov
51868a5e8c Pings/Trackbacks: Validate that the specified charset is available on the receiving site.
This aims to avoid a subsequent fatal error from `mb_convert_encoding()` when an invalid charset is specified.

Follow-up to [1734], [2563], [12032].

Props dd32, jrf, oglekler, rajinsharwar.
Fixes #60261.
Built from https://develop.svn.wordpress.org/trunk@59255


git-svn-id: http://core.svn.wordpress.org/trunk@58647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-18 15:56:18 +00:00
desrosj
4725c28e34 Build/Test Tools: Refine paths filter for workflows part 2.
[59252] made the path filtering a bit too broad for the Test Old Branches workflow.

Though `v3` of the reusable PHPUnit workflow is used by some older branches, this version is updated much more frequently because it’s the latest version.

To limit the number of times this workflow runs, old branches should only be tested when old versions of the workflow are updated.

Follow up to [59252].

See #61564.
Built from https://develop.svn.wordpress.org/trunk@59254


git-svn-id: http://core.svn.wordpress.org/trunk@58646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-18 15:20:14 +00:00
Joe McGill
dd274216f1 Editor: Improve performance of WP_Theme_JSON::compute_style_properties
This improves the logic in `WP_Theme_JSON::compute_style_properties` to address a number of performance issues.

Props spacedmonkey.
Fixes #59595.

Built from https://develop.svn.wordpress.org/trunk@59253


git-svn-id: http://core.svn.wordpress.org/trunk@58645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-18 14:26:20 +00:00
desrosj
bb1f4f1f80 Build/Test Tools: Refine paths filter for workflows.
Some GitHub Action workflows use the `paths` filter to limit when workflows run for pull requests. This helps avoid running workflows unnecessarily when the pull request does not change any relevant code.

Currently, a few of these workflows are configured to run when any `.yml` file in the `.github/workflows/` directory is changed. This updates those workflows to target more specific workflow files for more efficient running.

See #61564.
Built from https://develop.svn.wordpress.org/trunk@59252


git-svn-id: http://core.svn.wordpress.org/trunk@58644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-18 14:02:19 +00:00
desrosj
e4517c21a9 Build/Test Tools: Add input for PHPUnit test group.
This adds a `phpunit-test-goups` input to the reusable PHPUnit test workflow for added flexibility.

When passed, only the specified test groups are run.

Props jrf.
See #52668.
Built from https://develop.svn.wordpress.org/trunk@59251


git-svn-id: http://core.svn.wordpress.org/trunk@58643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-18 13:39:18 +00:00
gziolo
a923a561ca HTML API: Fix the position update after changing the modifiable text when length differs
There was an edge case detected for updating the text placed without the wrapping HTML tag with `set_modifiable_text`.

Props gziolo, jonsurrell.
Fixes #62241.


Built from https://develop.svn.wordpress.org/trunk@59250


git-svn-id: http://core.svn.wordpress.org/trunk@58642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-18 13:31:17 +00:00
desrosj
4bc546e7f5 Build/Test Tools: Change commands used for the copying .env.example file.
This switches from using the `test`/`cp` commands when copying the `.env.example` file to using `node:fs`. `test` and `cp` are not available on Windows machines.

This also adds the `.env` file to the `svn:ignore` list to prevent it from being committed accidentally.

Follow up to [59038].

Props afercia, Clorith, poena.
Fixes #52668.
Built from https://develop.svn.wordpress.org/trunk@59249


git-svn-id: http://core.svn.wordpress.org/trunk@58641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-18 12:37:20 +00:00
Bernhard Reiter
1dbf1ddc5a HTML API: Ensure form closer tokens are reachable.
Form tag closers have complicated conditions. There was a bug where the HTML Processor would not stop correctly on a FORM tag closer token.
This changeset ensures that that token is reachable.

Developed in https://github.com/WordPress/wordpress-develop/pull/7582
Discussed in https://core.trac.wordpress.org/ticket/61576

Follow-up to [58779].

Props jonsurrell.
Fixes #61576.
Built from https://develop.svn.wordpress.org/trunk@59248


git-svn-id: http://core.svn.wordpress.org/trunk@58640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-17 17:48:19 +00:00
Adam Silverstein
e0d47a45b1 Media: Ensure Imagick quality is set correctly.
Fix an issue where Imagick did not properly set image quality for AVIF images. Adds a call to `setCompressionQuality`  where we currently call `setImageCompressionQuality`

Props: jamesosborne, adamsilverstein, mukeshpanchal27.

Fixes: #61614.


Built from https://develop.svn.wordpress.org/trunk@59247


git-svn-id: http://core.svn.wordpress.org/trunk@58639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-17 17:05:18 +00:00
Sergey Biryukov
bd1a653f42 External Libraries: Upgrade PHPMailer to version 6.9.2.
This is a maintenance release with minor bug fixes.

References:
* [https://github.com/PHPMailer/PHPMailer/releases/tag/v6.9.2 PHPMailer 6.9.2 release notes]
* [https://github.com/PHPMailer/PHPMailer/compare/v6.9.1...v6.9.2 Full list of changes in PHPMailer 6.9.2]

Follow-up to [50628], [50799], [51169], [51634], [51635], [52252], [52749], [52811], [53500], [53535], [53917], [54427], [54937], [55557], [56484], [57137].

Props ayeshrajans.
Fixes #62206.
Built from https://develop.svn.wordpress.org/trunk@59246


git-svn-id: http://core.svn.wordpress.org/trunk@58638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-17 11:31:12 +00:00
cbravobernal
cc5e9ffb43 HTML API: Fix typo in error message in html processor.
Possesive "it's" should be "its."

Follow-up to [59076].

Props jonsurrell.
Fixes #62036.

Built from https://develop.svn.wordpress.org/trunk@59245


git-svn-id: http://core.svn.wordpress.org/trunk@58637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-17 11:03:17 +00:00
Peter Wilson
3c5699206b Bundled Themes: Avoid loading translations too early.
Load block patterns for bundled themes on the `init` hook to avoid triggering notices caused by loading the translations too early.

The change is applied to Twenty Ten, Twenty Twelve, Twenty Thirteen, Twenty Fourteen, Twenty Fifteen, Twenty Sixteen and Twenty Twenty.

Props domainsupport, swissspidy.
Fixes #62237.
See #44937.

Built from https://develop.svn.wordpress.org/trunk@59244


git-svn-id: http://core.svn.wordpress.org/trunk@58636 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-17 00:37:17 +00:00