Commit Graph

25068 Commits

Author SHA1 Message Date
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
Weston Ruter
8526fb29fb Widgets: Prevent fatal errors in PHP 8 when retrieve_widgets() and wp_map_sidebars_widgets() attempt to merge non-array values.
Props kesselb, lakshyajeet, hellofromTonya, janthiel, ikriv, audrasjb, mtg169, bartnv, pmbaldha, mindctrl, westonruter, jrf.
Fixes #57469.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-12 18:05:36 +00:00
Pascal Birchler
7f13088e92 Code Modernization: Fix setAccessible() PHP version comparison in two instances.
Follow-up to [60729].

See #63956.
Built from https://develop.svn.wordpress.org/trunk@60731


git-svn-id: http://core.svn.wordpress.org/trunk@60067 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-11 21:10:32 +00:00
Sergey Biryukov
52a82ee7a1 Docs: Correct indentation for a multi-line comment.
Includes reformatting a long conditional for better readability.

Follow-up to [38086], [42343].

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


git-svn-id: http://core.svn.wordpress.org/trunk@60066 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-11 15:26:40 +00:00
Pascal Birchler
a47a24cefc Code Modernization: Address reflection no-op function deprecations in PHP 8.5.
`Reflection*::setAccessible()` methods are no-ops since PHP 8.1. This commit adds conditional checks to only call these functions on older PHP versions.

Reference: [https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_reflectionsetaccessible PHP RFC: Deprecations for PHP 8.5: Deprecate `Reflection*::setAccessible()`].

Props rishabhwp, swissspidy.
Fixes #63956.
See #63061.
Built from https://develop.svn.wordpress.org/trunk@60729


git-svn-id: http://core.svn.wordpress.org/trunk@60065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-11 14:47:34 +00:00
Pascal Birchler
13828ce4bf I18N: Use Domain Path for script translations if available.
This is a follow-up to [59461] from 6.8, which leveraged `Domain Path` for just-in-time loading of MO/PHP translation files.

Now, the same is done for script translations, which means plugins/themes shipping with their own translation no longer need to manually specify the translation path when calling `wp_set_script_translations()`.

Props tusharbharti, swissspidy, shailu25, jsnajdr.
See #62244, #54797.
Fixes #63944.
Built from https://develop.svn.wordpress.org/trunk@60728


git-svn-id: http://core.svn.wordpress.org/trunk@60064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-11 10:13:27 +00:00
dmsnell
c7d7d6e40c Block Supports: Avoid throwing warning when checking for class attribute as string.
When encountering HTML tags with boolean or missing tags, the get_attribute() method in the HTML API returns true and null, respectively. If these returned values are sent directly into string comparison functions then as of PHP 8.0 they will throw E_DEPRECATED errors.

In this patch, block supports is enhanced to check that the class value is a string before it performs string operations on it.

Also in this patch: using `assertEqualHTML()` in background support test instead of `assertSame()`

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

Props dmsnell, jonsurrell, hellofromtonya, peterwilsoncc.
Fixes #59622.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-10 20:27:32 +00:00
Sergey Biryukov
1e6f8ec30b Coding Standards: Simplify a conditional in get_url_in_content().
As there's an `is_string()` check already, `! empty( $href )` can be simplified to a string comparison, as the other variable types that are checked in `empty()` won't appear.

`empty()` also returns `false` for the string `"0"` which would however be a valid (relative) URL and thus should be detectable by the function.

Follow-up to [60665].

Props TobiasBg.
Fixes #63694.
Built from https://develop.svn.wordpress.org/trunk@60726


git-svn-id: http://core.svn.wordpress.org/trunk@60062 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-10 03:17:33 +00:00
Sergey Biryukov
072f79dd00 Upgrade/Install: Cast get_option( 'active_plugins' ) to array in upgrade_690().
This resolves an error on Multisite networks where an individual site doesn't have plugins active:
{{{
array_search(): Argument #2 ($haystack) must be of type array, string given
}}}

Follow-up to [60666], [60721].

Props dd32.
See #53323.
Built from https://develop.svn.wordpress.org/trunk@60725


git-svn-id: http://core.svn.wordpress.org/trunk@60061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-09 15:34:31 +00:00
Sergey Biryukov
13f62d78ac Docs: Correct the order of @see and @global tags in some files.
Follow-up to [28656], [29090].

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


git-svn-id: http://core.svn.wordpress.org/trunk@60060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-09 14:33:29 +00:00
davidbaumwald
9ceab322ad Plugins: Correct deactivate row action text when network active.
Specifically, this change when a network activated plugin has plugin dependencies, the disabled deactivate row action link text is changed from "Deactivate" to "Network Deactivate".

Follow-up to [57545].

Props pbiron, nikunj8866, shailu25, jjj.
Fixes #63942.
Built from https://develop.svn.wordpress.org/trunk@60723


git-svn-id: http://core.svn.wordpress.org/trunk@60059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-08 20:58:38 +00:00
jonsurrell
33e7fbc1a9 Script Loader: Fix typo in code comment about sourceURL.
Developed in https://github.com/WordPress/wordpress-develop/pull/9794.

Follow-up to [60719].

Props jonsurrell, tobiasbg.
See #63887.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-08 14:30:26 +00:00
Sergey Biryukov
57e2365030 Upgrade/Install: Correct the database upgrade routine for WordPress 6.9.
This commit:
* Moves the call to `upgrade_690()` to the correct place so it actually gets called.
* Wraps Hello Dolly upgrade code in a version check per standard practice.
* Removes the `$wpdb->query()` call to avoid attempting to create the new index twice, once in the upgrade and once in `dbDelta()`.

Follow-up to [60666], [60716], [60717].

Props peterwilsoncc, mukesh27.
See #50161, #53323.
Built from https://develop.svn.wordpress.org/trunk@60721


git-svn-id: http://core.svn.wordpress.org/trunk@60057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-08 13:47:39 +00:00
gziolo
f7652f9cd8 Tests: Update rendering test cases for Block Bindings
Refactoring covered:

- Use the newly introduced `block_bindings_supported_attributes_{$block_name}` filter to register a `test/block`'s attribute as supported by Block Bindings, rather than using an actual block (Paragraph) for most tests.
- Merge three test cases that check if `get_value_callback` works correctly (accepts arguments; correctly includes symbols and numbers; return value is sanitized when rendered) into one, by using a `dataProvider`.
- Merge two test cases that check if block context is correctly evaluated, and that access is only given to context included in a source's `uses_context` property.

Follow-up to [60684].

Props bernhard-reiter, gziolo.
See #63840.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-08 11:29:22 +00:00
jonsurrell
ec862f5d99 Script Loader: Add sourceURL to inline scripts and styles.
Improve the source locations referenced by developer tooling in supporting browsers. Inline source locations are named like inline:handle-js-after and appear in the developer tools "sources" panel.

This is the second attempt to add sourceURL comments. The first attempt in [60685] was reverted due to an issue with script concatenation that has been addressed.

Developed in https://github.com/WordPress/wordpress-develop/pull/9672.

Follow-up to [60685], [60690].

Props jonsurrell, westonruter, wildworks, peterwilsoncc, johnbillion, tobiasbg.
Fixes #63887.

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


git-svn-id: http://core.svn.wordpress.org/trunk@60055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-08 11:27:31 +00:00
Sergey Biryukov
a2cceecbdd Database: Update $wp_db_version to point to the correct commit number.
Follow-up to [60717].

See #50161.
Built from https://develop.svn.wordpress.org/trunk@60718


git-svn-id: http://core.svn.wordpress.org/trunk@60054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-07 20:39:20 +00:00
Sergey Biryukov
d54706b43c Database: Add type_status_author index for the posts table.
This aims to improve performance of some queries on installations with a large number of posts.

Follow-up to [3678], [3690], [9290], [13576].

Props josephscott, LucasMS, Otto42, flixos90, matt, johnjamesjacoby, siliconforks, mukesh27,  jonsurrell, SirLouen, SergeyBiryukov.
Fixes #50161.
Built from https://develop.svn.wordpress.org/trunk@60717


git-svn-id: http://core.svn.wordpress.org/trunk@60053 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-07 20:36:20 +00:00
Sergey Biryukov
ff865046b7 Coding Standards: Move upgrade_690() to the correct place, after upgrade_682().
Follow-up to [60666].

See #53323.
Built from https://develop.svn.wordpress.org/trunk@60716


git-svn-id: http://core.svn.wordpress.org/trunk@60052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-09-07 20:34:35 +00:00