Commit Graph

51392 Commits

Author SHA1 Message Date
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
desrosj
261d82a9a3 Build/Test Tools: Improve certificate-related build scripts.
Because an exact version is pinned for `composer/ca-bundle`, the `composer update` command cannot update the dependency to the latest version. The command also does not work for a single dependency due to the fact that Composer has been configured not to generate a `composer.lock` file.

This updates the Grunt task to determine the new version using `composer outdated` before running `composer require composer/ca-bundle:NEW_VERSION --dev` to properly update the pinned version.

This also updates the build process test workflow to confirm that the certificate-related files under version control in `src/wp-includes/certificates` are up to date.

Props johnbillion.
Fixes #63939.
Built from https://develop.svn.wordpress.org/trunk@60765


git-svn-id: http://core.svn.wordpress.org/trunk@60101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-16 00:26:24 +00:00
desrosj
084100de18 Coding Standards: Apply changes from running composer format.
Follow up to [60684], [60743].

See #63840, #63863.
Built from https://develop.svn.wordpress.org/trunk@60764


git-svn-id: http://core.svn.wordpress.org/trunk@60100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-16 00:09:20 +00:00
desrosj
dea90ad8b7 Tests: Remove redundant wp_image_editors filter.
The `WP_Tests_Image_Resize_UnitTestCase` class extends `WP_Image_UnitTestCase`, which already has a `wp_image_editors` filter performing the same action.

This also officially declares `$editor_engine` as a property in the base class.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-16 00:04:33 +00:00
dmsnell
25597755ac Charset: Create compat-utf8.php module with fallback code.
This is the second 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 should move into a new location and be loaded early. This patch is the first half of doing that, whereby the original fallback function is moved unchanged to the `compat-utf8.php` module. The follow-up patch will abstract the UTF-8 scanning logic for reuse. Splitting this into a move and a separate change involves an extra step, but faciliates tracking the heritage of the code through the changes.

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

Follow-up to: [60630].

See #63863.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-15 19:09:25 +00:00
Sergey Biryukov
3d3b98d039 Twenty Fourteen: Document the twentyfourteen_credits action hook.
Follow-up to [24832], [60738], [60739], [60740].

Props pmbaldha, sabernhardt.
See #63648.
Built from https://develop.svn.wordpress.org/trunk@60742


git-svn-id: http://core.svn.wordpress.org/trunk@60078 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-15 17:20:34 +00:00
Pascal Birchler
b47546f8b0 Interactivity API: Fix "Cannot use bool as array" error.
Improves PHP 8.5 compatibility where calling `list()` on an empty array throws a warning.

Props swissspidy, jonsurrell, mukesh27.
Fixes #63977.
See #63061.
Built from https://develop.svn.wordpress.org/trunk@60741


git-svn-id: http://core.svn.wordpress.org/trunk@60077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-15 12:59:35 +00:00
Sergey Biryukov
5db5ede87e Twenty Thirteen: Document the twentythirteen_credits action hook.
Follow-up to [23452], [60738], [60739].

Props pmbaldha, sabernhardt.
See #63648.
Built from https://develop.svn.wordpress.org/trunk@60740


git-svn-id: http://core.svn.wordpress.org/trunk@60076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-15 12:14:31 +00:00
Sergey Biryukov
11b6c91929 Twenty Twelve: Document the twentytwelve_credits action hook.
Follow-up to [21261], [60738].

Props pmbaldha, sabernhardt.
See #63648.
Built from https://develop.svn.wordpress.org/trunk@60739


git-svn-id: http://core.svn.wordpress.org/trunk@60075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-14 14:32:29 +00:00
Sergey Biryukov
b747a4564d Twenty Eleven: Document the twentyeleven_credits action hook.
Follow-up to [17954], [25627], [29998].

Props pmbaldha, sabernhardt.
See #63648.
Built from https://develop.svn.wordpress.org/trunk@60738


git-svn-id: http://core.svn.wordpress.org/trunk@60074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-13 22:57:32 +00:00
John Blackbourn
6d4a349d52 Build/Test Tools: Configure PHPUnit to fail on risky tests.
There should be no need for a risky test to go unseen. It usually signifies a problem in the associated test that needs to be addressed.

See #63167, #63932

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


git-svn-id: http://core.svn.wordpress.org/trunk@60073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-13 15:25:33 +00:00
John Blackbourn
1525fcd7bc Media: Temporarily disable failing tests when Imagick 7 is in use, pending further investigation.
The updated PHP 8.4 and 8.3 containers are running Imagick 7 which is producing some test failures for AVIFs and PNGs with 1-bit transparency. This requires further investigation, possibly accompanied by more comprehensive testing across Imagick versions, so these tests are disabled for now.

Additional missing assertions have also been added which ensure an unexpected `WP_Error` instance correctly fails the test and is not passed to an image processing function.

Props johnbillion, siliconforks, desrosj, jorbin.

See #63932

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


git-svn-id: http://core.svn.wordpress.org/trunk@60072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-13 12:16:24 +00:00
John Blackbourn
a575d6c4bd Build/Test Tools: Switch back to using the latest stable PHP 8.4 and 8.3 images for the test environment.
The underlying issue that caused the MariaDB client in the updated CLI container to no longer trust a self-signed certificate from the MySQL server has been resolved in https://github.com/WordPress/wpdev-docker-images/pull/190.

This change also reinstates the memcached test jobs as the underlying issue where its path resolution was incorrect has been resolved in https://github.com/WordPress/wpdev-docker-images/pull/181.

Props SirLouen, desrosj, johnbillion, kadamwhite, jorbin, davidbaumwald, bernhard-reiter, St. Virtualis of Dockeria

Fizes #63876

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


git-svn-id: http://core.svn.wordpress.org/trunk@60071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-13 12:07:34 +00:00
Sergey Biryukov
27e257c2ad Formatting: Allow specifying https:// as the default protocol in esc_url().
`esc_url()` will now  prepend `https://` to the URL if it does not already contain a scheme and the first item in the `$protocols` array is `'https'`.

Follow-up to [5088], [6015], [13299], [33851], [60672].

Props sabernhardt, mkaz, rachelbaker, audrasjb, costdev, aksl95, johnbillion, pcarvalho, SergeyBiryukov.
Fixes #52886.
Built from https://develop.svn.wordpress.org/trunk@60734


git-svn-id: http://core.svn.wordpress.org/trunk@60070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-12 22:05:28 +00:00
Weston Ruter
2ab6b4ffe5 Posts, Post Types: Fix placement of WP_Error check in get_adjacent_post().
Props kitchin, mindctrl, westonruter, SirLouen, SergeyBiryukov, pmbaldha.
Fixes #63920.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-12 21:18:28 +00:00