Commit Graph

51406 Commits

Author SHA1 Message Date
joedolson
6bd164afa3 Editor: Allow popover attributes in editor content.
Add attributes to KSES so that it's possible to create popover interactions natively in the editor. Adds `popovertarget`, `popovertargetaction` and `aria-haspopup` to `button`; `popover` to `div`, `ul`, and adds `dialog` with the attributes `open`, `closedby`, and `popover`.

Props harshdeepgill, jonsurrell, joedolson, sukhendu2002, flixos90, joedolson.
Fixes #61959.
Built from https://develop.svn.wordpress.org/trunk@60884


git-svn-id: http://core.svn.wordpress.org/trunk@60220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 23:08:31 +00:00
John Blackbourn
a8185d31f0 Menus: Revert some unintentional whitespace changes introduced in r60815.
Unprops johnbillion.
Built from https://develop.svn.wordpress.org/trunk@60816


git-svn-id: http://core.svn.wordpress.org/trunk@60152 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 16:37:35 +00:00
John Blackbourn
e5caef19d3 Menus: Prevent HTML in menu item titles from being rendered unexpectedly.
Props audrasjb, desrosj, johnbillion, jorbin, phillsav, vortfu, westonruter
Built from https://develop.svn.wordpress.org/trunk@60815


git-svn-id: http://core.svn.wordpress.org/trunk@60151 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 16:28:31 +00:00
John Blackbourn
27784ed960 REST API: Increase the specificity of capability checks for collections when the edit context is in use.
The edit access in now taken into account for each individual post, term, or user in the response.

Props andraganescu, desrosj, ehti, hurayraiit, iandunn, joehoyle, johnbillion, jorbin, mnelson4, noisysocks, peterwilsoncc, rmccue, timothyblynjacobs, vortfu, whyisjake, zieladam.
Built from https://develop.svn.wordpress.org/trunk@60814


git-svn-id: http://core.svn.wordpress.org/trunk@60150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 15:51:28 +00:00
Sergey Biryukov
52250daf06 External Libraries: Upgrade PHPMailer to version 6.11.0.
This is a large maintenance release with address parser improvements.

References:
* [https://github.com/PHPMailer/PHPMailer/releases/tag/v6.11.0 PHPMailer 6.11.0 release notes]
* [https://github.com/PHPMailer/PHPMailer/compare/v6.10.0...v6.11.0 Full list of changes in PHPMailer 6.11.0]

Follow-up to [54937], [55557], [56484], [57137], [59246], [59481], [60623].

Props SirLouen, jrf, mukesh27, SergeyBiryukov.
Fixes #64052.
Built from https://develop.svn.wordpress.org/trunk@60813


git-svn-id: http://core.svn.wordpress.org/trunk@60149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-30 12:48:28 +00:00
Pascal Birchler
ff67328a1d External Libraries: Backport upstream PHP 8.5 fixes for getID3.
In absence of a new release, this cherry-picks [8cb292333f 8cb29233] and [dbda40de6d dbda40de].

Props swissspidy, vidugupta, TobiasBg, desrosj.
Fixes #64051. See #63061.
Built from https://develop.svn.wordpress.org/trunk@60812


git-svn-id: http://core.svn.wordpress.org/trunk@60148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-29 19:12:29 +00:00
Pascal Birchler
59e0295baa Code Modernization: Avoid NAN coercion/cast deprecation warnings.
Coercing `INF` or `NAN` to a string or casting to int is deprecated in PHP 8.5+.

This change addresses two occurrences in core where this was happening.

Props swissspidy.
Fixes #64047. See #63061.
Built from https://develop.svn.wordpress.org/trunk@60811


git-svn-id: http://core.svn.wordpress.org/trunk@60147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-29 18:41:26 +00:00
Pascal Birchler
7d4a7dc5da Media: Fix HEIF mime type assertion in test for PHP 8.5.
In PHP 8.5, the test image's mime type is now detected as `image/heif`, not `image/heic`.

Props swissspidy, adamsilverstein.
Fixes #64050.
Built from https://develop.svn.wordpress.org/trunk@60810


git-svn-id: http://core.svn.wordpress.org/trunk@60146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-29 18:00:32 +00:00
Pascal Birchler
310424d1fc Code Modernization: Fix instances of using null as an array offset.
Addresses a new [https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_using_values_null_as_an_array_offset_and_when_calling_array_key_exists deprecation in PHP 8.5].

Props swissspidy.
Fixes #63957.
Built from https://develop.svn.wordpress.org/trunk@60809


git-svn-id: http://core.svn.wordpress.org/trunk@60145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-29 16:29:35 +00:00
Sergey Biryukov
b927d46132 Coding Standards: Correct alignment in _wp_scan_utf8().
This resolves a WPCS warning:
{{{
Equals sign not aligned with surrounding statements
}}}
so that the output of `composer format` is clean.

Follow-up to [60768].

Props paulbonneau.
See #63168.
Built from https://develop.svn.wordpress.org/trunk@60808


git-svn-id: http://core.svn.wordpress.org/trunk@60144 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-29 10:13:28 +00:00
Bernhard Reiter
f263907cda Block Bindings: Communicate supported block attributes from server.
Instead of requiring the client side to keep a separate list of block attributes that are supported by Block Bindings, communicate that list from the server -- including block attributes that were added there via the `block_bindings_supported_attributes` filter.

Props bernhard-reiter, mukesh27, gziolo.
Fixes #64030.
Built from https://develop.svn.wordpress.org/trunk@60807


git-svn-id: http://core.svn.wordpress.org/trunk@60143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-29 08:59:31 +00:00
joedolson
69bb40f683 A11y: Ensure icons are not spoken by screen readers.
For all CSS generated icons across core, either add `aria-hidden="true"` to the HTML wrapper or set the generated content alternative to an empty string in the CSS using the  alternative text specification for CSS generated content.

Props afercia, joedolson, cheffheid, jhabdas.
Fixes #40428.
Built from https://develop.svn.wordpress.org/trunk@60806


git-svn-id: http://core.svn.wordpress.org/trunk@60142 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-28 23:40:35 +00:00
joedolson
7973f2e205 I18n: Combine duplicate text strings into variables.
In cases where a string is used both for a visible label and a screen reader text label,  the screen reader text should never be different from the visible label. To help ensure this doesn't happen, use only a single string. The associated screen reader text comments are no longer required.

This is also true for a few cases where there are strings in contexts where variables can't be used. In these cases, the screen reader text comments are also removed.

Props sabernhardt, swissspidy, audrasjb, joedolson.
Fixes #63620.
Built from https://develop.svn.wordpress.org/trunk@60805


git-svn-id: http://core.svn.wordpress.org/trunk@60141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-28 22:38:32 +00:00
John Blackbourn
dc0b4ceef5 Code Modernization: Revert [60796]. This change needs some more work before it's fully ready.
See #63962

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


git-svn-id: http://core.svn.wordpress.org/trunk@60140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-28 21:56:27 +00:00
Sergey Biryukov
da949cda46 Build/Test Tools: Make Composer available via npm run on the host machine.
This enables developers to directly invoke the Composer instance of the `wordpressdevelop/php` container from their host machine, making it easier to call Composer-specific scripts: linting, formatting, etc.

Props paulbonneau, SirLouen.
Fixes #63912.
Built from https://develop.svn.wordpress.org/trunk@60803


git-svn-id: http://core.svn.wordpress.org/trunk@60139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-28 16:22:31 +00:00
Sergey Biryukov
2acae839f0 Docs: Correct the order of @see and @param tags in WP_Customize_Widgets.
Follow-up to [36586], [42630].

Props shailu25.
See #63166.
Built from https://develop.svn.wordpress.org/trunk@60802


git-svn-id: http://core.svn.wordpress.org/trunk@60138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-27 19:35:27 +00:00
John Blackbourn
a9452a55f9 Build/Test Tools: Add some missing permissions to the legacy GitHub Actions workflows that are used by older branches.
These permissions are not required for a public repo but are required for a private repo, for example a private fork.

Follow-up to [60612].

See #63170
Built from https://develop.svn.wordpress.org/trunk@60801


git-svn-id: http://core.svn.wordpress.org/trunk@60137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-26 23:35:28 +00:00
Sergey Biryukov
4c1f9a0d35 Coding Standards: Move specific sniff exclusions for getID3 to the config file.
This aims to make future updates of the library easier.

Follow-up to [47735], [47737], [47902].

See #63168.
Built from https://develop.svn.wordpress.org/trunk@60800


git-svn-id: http://core.svn.wordpress.org/trunk@60136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-26 21:10:36 +00:00
Sergey Biryukov
ad464e9a07 Tests: Clean up calls to the unused wp_add_post_meta() function.
Follow-up to [1041/tests], [23416], [23554].

Props SirLouen, mukesh27, SergeyBiryukov.
See #63167.
Built from https://develop.svn.wordpress.org/trunk@60799


git-svn-id: http://core.svn.wordpress.org/trunk@60135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-25 14:53:30 +00:00
Bernhard Reiter
27487b6b96 Block Bindings: Support Image block's caption attribute.
This is now possible thank to the logic added in [60684].

Props bernhard-reiter, mukesh27.
Fixes #64031.
Built from https://develop.svn.wordpress.org/trunk@60798


git-svn-id: http://core.svn.wordpress.org/trunk@60134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-25 09:02:34 +00:00
Sergey Biryukov
b27e369cb2 Coding Standards: Move specific sniff exclusions for PHPMailer to the config file.
This aims to make future updates of the library easier.

Follow-up to [48045], [51635].

See #63168.
Built from https://develop.svn.wordpress.org/trunk@60797


git-svn-id: http://core.svn.wordpress.org/trunk@60133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-24 10:43:41 +00:00
Sergey Biryukov
1780c6ec3d Code Modernization: Address __sleep() and __wakeup() deprecations in PHP 8.5.
PHP 8.5 deprecates the `__sleep()` and `__wakeup()` magic methods in favor of `__serialize()` and `__unserialize()`:
> `Deprecated:  The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary)`

For PHP < 7.4 compatibility, `__sleep()` and `__wakeup()` need to be kept for the time being.

This commit moves the logic of `__wakeup()` methods in core to `__unserialize()`, and turns the former into wrappers. WordPress core does not use `__sleep()` methods, so these are the only changes required.

Reference: [https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_sleep_and_wakeup_magic_methods PHP RFC: Deprecations for PHP 8.5: Deprecate the __sleep() and __wakeup() magic methods].

Follow-up to [56835], [60787], [60795].

Props TobiasBg, tusharbharti, swissspidy, dmsnell, SergeyBiryukov.
Fixes #63962. See #63061.
Built from https://develop.svn.wordpress.org/trunk@60796


git-svn-id: http://core.svn.wordpress.org/trunk@60132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-23 19:28:28 +00:00
Sergey Biryukov
e972807636 Coding Standards: Add specific sniff exclusions for serialize functions in sodium_compat.
These are necessary for a passing PHP Compatibility scan.

Follow-up to [47735], [60787].

See #64008.
Built from https://develop.svn.wordpress.org/trunk@60795


git-svn-id: http://core.svn.wordpress.org/trunk@60131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-23 18:52:32 +00:00
dmsnell
766e44e68e Charset: Fix typo in docblock of _wp_is_valid_utf8_fallback().
Quick-fix for typo in docblock.

Follow-up to: [60793].
Props mukesh27.
See #63863.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60130 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-23 07:38:30 +00:00
dmsnell
7342284ab7 Charset: Improve UTF-8 scrubbing ability via new UTF-8 scanning pipeline.
This is the fourth in a series of patches to modernize and standardize UTF-8 handling.

`wp_check_invalid_utf8()` has long been dependent on the runtime configuration of the system running it. This has led to hard-to-diagnose issues with text containing invalid UTF-8. The function has also had an apparent defect since its inception: when requesting to strip invalid bytes it returns an empty string.

This patch updates the function to remove all dependency on the system running it. It defers to the `mbstring` extension if that’s available, falling back to the new UTF-8 scanning pipeline.

To support this work, `wp_scrub_utf8()` is created with a proper fallback so that the remaining logic inside of `wp_check_invalid_utf8()` can be minimized. The defect in this function has been fixed, but instead of stripping the invalid bytes it will replace them with the Unicode replacement character for stronger security guarantees.

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

Follow-up to: [60768].
Props askapache, chriscct7, Cyrille37, desrosj, dmsnell, helen, jonsurrell, kitchin, miqrogroove, pbearne, shailu25.
Fixes #63837, #29717.
See #63863.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60129 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-23 03:36:32 +00:00
Weston Ruter
ad197b4c50 Posts, Post Types: Refactor preparation of query for wp_count_posts().
Follow-up to [60788].

Props mukesh27, westonruter.
See #61097.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60128 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-22 18:50:33 +00:00
Sergey Biryukov
0d72a335c2 Docs: Clarify documentation for the template_redirect hook.
Follow-up to [1910], [13252], [25702].

Props apermo, SergeyBiryukov.
Fixes #64018.
Built from https://develop.svn.wordpress.org/trunk@60791


git-svn-id: http://core.svn.wordpress.org/trunk@60127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-22 14:27:39 +00:00
Bernhard Reiter
a332dbc169 Block Bindings: Add block_bindings_supported_attributes filter.
Add a block-agnostic version of the `block_bindings_supported_attributes_{$block_type}` filter first introduced in [60611].

This allows adding block bindings support for attributes of multiple different blocks in one go.

Follow-up to [60611].
Props bernhard-reiter.
See #62090.
Built from https://develop.svn.wordpress.org/trunk@60790


git-svn-id: http://core.svn.wordpress.org/trunk@60126 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-22 09:32:34 +00:00
Sergey Biryukov
171b7fb23e Database: Do not unnecessarily alter table in dbDelta() for field type case differences.
This aims to avoid extra changes to database structure when type case is the only difference:
{{{
Changed type of wp_table.field from varchar(255) to VARCHAR(255)
}}}

Follow-up to [1575], [37532].

Props leewillis77, tristanleboss, lordspace, johnbillion, SergeyBiryukov.
Fixes #59481.
Built from https://develop.svn.wordpress.org/trunk@60789


git-svn-id: http://core.svn.wordpress.org/trunk@60125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-21 15:52:29 +00:00
Weston Ruter
6c96fac139 Posts, Post Types: Improve wp_count_posts() query performance for users who cannot read_private_posts.
The query is refactored to use two subqueries which can leverage DB indexes.

Props rcorrales, snehapatil02, sirlouen, sajjad67, pbearne, johnbillion, westonruter.
Fixes #61097.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-21 05:27:26 +00:00
Sergey Biryukov
5b81ab24a3 Upgrade/Install: Update sodium_compat to v1.21.2.
Version 1.21.2 is mostly to prevent deprecation warnings on PHP 8.5. These should never be encountered in practice (as the only file in scope was an `SplFixedArray` polyfill for PHP 5.2, which should never be executed on PHP 8.5), but for completeness the polyfill was updated.

References:
* [https://github.com/paragonie/sodium_compat/releases/tag/v1.21.2 sodium_compat 1.21.2 release notes]
* [https://github.com/paragonie/sodium_compat/compare/v1.20.1...v1.21.2 Full list of changes in sodium_compat 1.21.2]

Follow-up to [55699], [58752], [58753].

Props paragoninitiativeenterprises, jrf, johnbillion, TobiasBg, SergeyBiryukov.
Fixes #64008.
Built from https://develop.svn.wordpress.org/trunk@60787


git-svn-id: http://core.svn.wordpress.org/trunk@60123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-20 22:13:39 +00:00
joedolson
69ced2eb1f Editor: A11y: Set aria-haspopup on Add Media button.
Add the `aria-haspopup` attribute and `aria-controls` on the Add Media button in the classic editor, so that screen reader users are notified about the behavior of the button.

Props alh0319, rishabhwp, joedolson.
Fixes #63973.
Built from https://develop.svn.wordpress.org/trunk@60786


git-svn-id: http://core.svn.wordpress.org/trunk@60122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-19 20:54:33 +00:00
joedolson
c25aaf21c0 Customizer: Handle keyboard focus after adding site icon or logo.
Fix focus loss after assigning a site icon or a site logo in the customizer. Sets focus to the 'Remove' button immediately following the setting control.

Props joedolson, rishabhwp, krupajnanda, pmbaldha.
Fixes #63832.
Built from https://develop.svn.wordpress.org/trunk@60785


git-svn-id: http://core.svn.wordpress.org/trunk@60121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-19 19:57:28 +00:00
Sergey Biryukov
2217d04148 Database: Ensure Non_unique index value is compared as a string in dbDelta().
Follow-up to [1575], [58994].

Props tsteel.
Fixes #64005.
Built from https://develop.svn.wordpress.org/trunk@60784


git-svn-id: http://core.svn.wordpress.org/trunk@60120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-19 13:08:27 +00:00
John Blackbourn
1db0619348 General: Escape periods in regular expressions where the character is intended to match only a literal period.
Props westonruter, mukesh27, johnbillion

Fixes #63988
Built from https://develop.svn.wordpress.org/trunk@60783


git-svn-id: http://core.svn.wordpress.org/trunk@60119 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-19 12:22:23 +00:00
Sergey Biryukov
1e8e058801 Database: Do not report an extra update in dbDelta() with backticks in table name.
Follow-up to [10948], [20704].

Props leewillis77, swissspidy, johnbillion, SergeyBiryukov.
Fixes #63976.
Built from https://develop.svn.wordpress.org/trunk@60782


git-svn-id: http://core.svn.wordpress.org/trunk@60118 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-19 12:00:26 +00:00
desrosj
e00be943aa Build/Test Tools: Configure logging for PHPUnit and multisite.
This ensures a log file is created after running the PHPUnit test suite as a multisite.

In practice, this file is used by the Host Test Runner to collect a list of failing tests to submit to wordpress.org.

See https://github.com/WordPress/phpunit-test-runner/issues/267.

Props rishabhwp, nimeshatxecurify.
Fixes #63884.
Built from https://develop.svn.wordpress.org/trunk@60781


git-svn-id: http://core.svn.wordpress.org/trunk@60117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-18 19:17:30 +00:00
Sergey Biryukov
b142362a93 Docs: Correct formatting for wp_img_tag_add_decoding_attr filter DocBlock.
Follow-up to [56690].

Props mukesh27.
See #63166.
Built from https://develop.svn.wordpress.org/trunk@60780


git-svn-id: http://core.svn.wordpress.org/trunk@60116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-18 14:59:30 +00:00
Peter Wilson
ffba255c10 Coding Standards: Rename arguments in comment_type().
Rename the arguments in `comment_type()` to use underscore separators per coding standards and to add vowels for clarity.

"Pingback" and "Trackback" in the variable names are left unchanged as they are concatenated for display to site owners.

See #63168.


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


git-svn-id: http://core.svn.wordpress.org/trunk@60115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-17 22:45:28 +00:00
cbravobernal
72c6f79c79 Block Bindings: Add postType to context for Post Data source
Adds a required `postType` context, which is used in the editor client side.

Props bernhard-reiter, cbravobernal.
Fixes #63994.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-17 15:00:26 +00:00
Sergey Biryukov
64fd84ff42 External Libraries: Adopt standard get_temp_dir() in Text_Diff::_getTempDir().
This aims to bring more consistency with the rest of core, and more closely mirrors the similar changes upstream to use `sys_get_temp_dir()`.

The potential `false` return value was not checked by the only caller in `Text_Diff_Engine_shell::diff()`.

Follow-up to [7747], [48464], [49185], [60776].

Props TimoTijhof, apermo, SergeyBiryukov.
Fixes #63711.
Built from https://develop.svn.wordpress.org/trunk@60777


git-svn-id: http://core.svn.wordpress.org/trunk@60113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-17 14:44:24 +00:00
Sergey Biryukov
43018cae19 Docs: Clarify the description for get_temp_dir().
Includes a note that `sys_get_temp_dir()` honors the `TMPDIR` environment variable.

Follow-up to [17555], [22008], [28936].

Props TimoTijhof, SergeyBiryukov.
See #63711.
Built from https://develop.svn.wordpress.org/trunk@60776


git-svn-id: http://core.svn.wordpress.org/trunk@60112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-17 13:37:39 +00:00
Weston Ruter
ba1e77a454 Menus: Fix searchability of post types which contain numeric characters.
The regular expression needs to correspond to how a post type slug is sanitized by `sanitize_key()` in `register_post_type()`.

Props kshaner, mindctrl, oglekler.
Fixes #63633.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-17 05:48:31 +00:00
desrosj
eed344df10 Build/Test Tools: Run xDebug tests on PHP 8.4.
xDebug was added to the 8.4 image at the end of 2024, so these tests can now be run.

See #63167.
Built from https://develop.svn.wordpress.org/trunk@60774


git-svn-id: http://core.svn.wordpress.org/trunk@60110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-17 03:31:33 +00:00
desrosj
d5b911b696 Tests: Note image editor class in skipped test note.
When the image editor being used is available, it should be noted in the skipped test message.

See #63167.
Built from https://develop.svn.wordpress.org/trunk@60772


git-svn-id: http://core.svn.wordpress.org/trunk@60108 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-17 02:13:29 +00:00
Sergey Biryukov
5a82c86d00 External Libraries: Update the SimplePie library to version 1.9.0.
References:
* [https://github.com/simplepie/simplepie/releases/tag/1.9.0 SimplePie 1.9.0 release notes]
* [https://github.com/simplepie/simplepie/compare/1.8.1...1.9.0 Full list of changes in SimplePie 1.9.0]

Follow-up to [59141], [60490].

Props swissspidy, TobiasBg, SergeyBiryukov.
Fixes #63961.
Built from https://develop.svn.wordpress.org/trunk@60771


git-svn-id: http://core.svn.wordpress.org/trunk@60107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-16 22:47:31 +00:00
desrosj
60ce43fb10 Tests: Remove @group annotations from abstract classes.
Labelling abstract classes with group annotations is misleading because they are not executed by PHPUnit without an actual test class extending them.

See #63167.
Built from https://develop.svn.wordpress.org/trunk@60770


git-svn-id: http://core.svn.wordpress.org/trunk@60106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-16 17:39:29 +00:00
desrosj
abfc1df7a8 Tests: Add image editor specific group annotations for resize test classes.
This adds the `wp-image-editor-gd` and `wp-image-editor-imagick` group annotation to the `Test_Image_Resize_GD` and `Test_Image_Resize_Imagick` test classes, respectively.

See #63167.
Built from https://develop.svn.wordpress.org/trunk@60769


git-svn-id: http://core.svn.wordpress.org/trunk@60105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-16 17:19:32 +00:00
dmsnell
72bf42aa49 Charset: Introduce UTF-8 scanning pipeline.
This is the third in a series of patches to modernize and standardize UTF-8 handling.

When the fallback UTF-8 validation code was added it was placed inside formatting.php; however, that validation logic can be reused for a number of related UTF-8 functions. To faciliate this it was moved into a new location and loaded early. This patch is follow-up to that first half, whereby the UTF-8 scanning logic forms its own new `_wp_scan_utf8()` function. This new UTF-8 scanner is a low-level function which forms a shared spec-compliant processing core to power multiple fallback functions and some new functionality as well.

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

Follow-up to: [60743].

See #63863.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-16 12:36:31 +00:00
desrosj
206671078c Build/Test Tools: Add branch filtering to upgrade test workflow.
The upgrade testing workflow is only meant to run from `trunk`. When a pull request as any other BASE branch, the workflow should not run.

See #63170.
Built from https://develop.svn.wordpress.org/trunk@60767


git-svn-id: http://core.svn.wordpress.org/trunk@60103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-16 01:16:31 +00:00