youknowriad
f8aecf9607
Build: Update Gutenberg integration to checkout-and-build approach.
...
This changes WordPress Core's Gutenberg integration from npm packages to checking out and building Gutenberg directly. Instead of syncing individual npm packages, Core now checks out the Gutenberg repository, builds it, and copies the build artifacts.
This enables Core to use Gutenberg's advanced features like route-based navigation, full-page rendering, and the Font Library, while also streamlining future updates.
New commands:
* `npm run gutenberg:checkout` - Clones Gutenberg at a specified ref
* `npm run gutenberg:build` - Runs Gutenberg's build process
* `npm run gutenberg:copy` - Copies and transforms build output to Core
* `npm run gutenberg:integrate` - Runs all three steps
Main changes:
* Removes webpack configs replaced by Gutenberg's build (blocks.js, packages.js, script-modules.js, development.js, vendors.js)
* Adds Font Library page (`/wp-admin/font-library.php`)
* Adds copy scripts to transform Gutenberg plugin paths to Core paths
* Moves vendor copy step from webpack to Gruntfile
New year, new process. Happy New Year!
Props youknowriad, ellatrix, sirreal, westonruter, desrosj, tellthemachines.
Fixes #64393 .
Built from https://develop.svn.wordpress.org/trunk@61438
git-svn-id: http://core.svn.wordpress.org/trunk@60750 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 12:16:10 +00:00
wildworks
4d2234f5e1
Block support: Add server-side processing for anchor.
...
Adds server-side registration for `anchor` block support and its required fields.
Props westonruter, wildworks.
Fixes #64449 .
Built from https://develop.svn.wordpress.org/trunk@61437
git-svn-id: http://core.svn.wordpress.org/trunk@60749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 06:31:29 +00:00
Weston Ruter
de5f29a04a
Code Modernization: Formatting: Use null coalescing operator instead of isset() ternaries.
...
Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654
Initially developed in https://github.com/WordPress/wordpress-develop/pull/4886
Follow-up to [61435], [61434], [61403], [61433], [61432], [61431], [61430], [61429], [61424], [61404], [61403].
Props costdev, westonruter.
See #58874 , #63430 .
Built from https://develop.svn.wordpress.org/trunk@61436
git-svn-id: http://core.svn.wordpress.org/trunk@60748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 06:04:33 +00:00
Weston Ruter
45d10c626c
Code Modernization: HTTP: Use null coalescing operator instead of isset() ternaries.
...
Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654
Initially developed in https://github.com/WordPress/wordpress-develop/pull/4886
Follow-up to [61434], [61403], [61433], [61432], [61431], [61430], [61429], [61424], [61404], [61403].
Props costdev, westonruter.
See #58874 , #63430 .
Built from https://develop.svn.wordpress.org/trunk@61435
git-svn-id: http://core.svn.wordpress.org/trunk@60747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 05:58:26 +00:00
Weston Ruter
c14a2c926d
Code Modernization: Comments: Use null coalescing operator instead of isset() ternaries.
...
Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654
Initially developed in https://github.com/WordPress/wordpress-develop/pull/4886
Follow-up to [61403], [61433], [61432], [61431], [61430], [61429], [61424], [61404], [61403].
Props costdev, westonruter.
See #58874 , #63430 .
Built from https://develop.svn.wordpress.org/trunk@61434
git-svn-id: http://core.svn.wordpress.org/trunk@60746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 05:53:29 +00:00
Weston Ruter
beeb0e2d84
Code Modernization: Customize: Use null coalescing operator instead of isset() ternaries.
...
Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654
Initially developed in https://github.com/WordPress/wordpress-develop/pull/4886
Follow-up to [61432], [61431], [61430], [61429], [61424], [61404], [61403].
Props costdev, westonruter.
See #58874 , #63430 .
Built from https://develop.svn.wordpress.org/trunk@61433
git-svn-id: http://core.svn.wordpress.org/trunk@60745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 05:41:32 +00:00
Weston Ruter
661996a40f
Code Modernization: Widgets: Use null coalescing operator instead of isset() ternaries.
...
Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654
Initially developed in https://github.com/WordPress/wordpress-develop/pull/4886
Follow-up to [61431], [61430], [61429], [61424], [61404], [61403].
Props costdev, westonruter.
See #58874 , #63430 .
Built from https://develop.svn.wordpress.org/trunk@61432
git-svn-id: http://core.svn.wordpress.org/trunk@60744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 05:33:32 +00:00
Weston Ruter
527ccba62f
Code Modernization: Editor: Use null coalescing operator instead of isset() ternaries.
...
Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654
Initially developed in https://github.com/WordPress/wordpress-develop/pull/4886
Follow-up to [61430], [61429], [61424], [61404], [61403].
Props costdev, westonruter.
See #58874 , #63430 .
Built from https://develop.svn.wordpress.org/trunk@61431
git-svn-id: http://core.svn.wordpress.org/trunk@60743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 05:24:33 +00:00
Weston Ruter
6a9a061a04
Code Modernization: Block Supports: Use null coalescing operator instead of isset() ternaries.
...
Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654
Initially developed in https://github.com/WordPress/wordpress-develop/pull/4886
Follow-up to [61429], [61424], [61404], [61403].
Props costdev, westonruter.
See #58874 , #63430 .
Built from https://develop.svn.wordpress.org/trunk@61430
git-svn-id: http://core.svn.wordpress.org/trunk@60742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 04:52:31 +00:00
Weston Ruter
74d6d906f2
Code Modernization: REST API: Use null coalescing operator in place of isset() in ternaries.
...
Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654
Initially developed in https://github.com/WordPress/wordpress-develop/pull/4886
Follow-up to [61424], [61404], [61403].
Props costdev, westonruter.
See #58874 , #63430 .
Built from https://develop.svn.wordpress.org/trunk@61429
git-svn-id: http://core.svn.wordpress.org/trunk@60741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-05 04:33:34 +00:00
Sergey Biryukov
c7dc39302c
Docs: Correct DocBlock formatting for rest_pre_serve_request filter.
...
Follow-up to [34928].
See #64224 .
Built from https://develop.svn.wordpress.org/trunk@61428
git-svn-id: http://core.svn.wordpress.org/trunk@60740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-04 23:27:35 +00:00
Sergey Biryukov
44deb16935
Bundled Themes: Consistently escape get_search_query() in search.php templates.
...
Props sabernhardt, himshekhar07, petitphp, karmatosed, SergeyBiryukov.
Fixes #58127 .
Built from https://develop.svn.wordpress.org/trunk@61427
git-svn-id: http://core.svn.wordpress.org/trunk@60739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-03 22:26:34 +00:00
Weston Ruter
ca8b023f84
Script Loader: Add types for arrays in phpdoc.
...
This resolves 10 `missingType.iterableValue` issues in PHPStan.
Follow-up to [61402], [61362], [61358].
See #64224 , #64238 .
Built from https://develop.svn.wordpress.org/trunk@61426
git-svn-id: http://core.svn.wordpress.org/trunk@60738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-03 07:38:33 +00:00
Weston Ruter
2938008651
Script Loader: Simplify data structure in wp_default_packages_vendor() to facilitate static analysis.
...
This resolves two PHPStan level 7 issues: `offsetAccess.notFound` and `argument.type`.
Follow-up to [44114].
See #64238 , #45065 .
Built from https://develop.svn.wordpress.org/trunk@61425
git-svn-id: http://core.svn.wordpress.org/trunk@60737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-03 07:17:31 +00:00
Weston Ruter
0e68847294
Code Modernization: Update tests to use null coalescing operator in place of isset() in ternaries.
...
Developed as a subset of https://github.com/WordPress/wordpress-develop/pull/10654
Follow-up to [61404], [61403].
See #58874 , #63430 .
Built from https://develop.svn.wordpress.org/trunk@61424
git-svn-id: http://core.svn.wordpress.org/trunk@60736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-03 06:17:37 +00:00
Sergey Biryukov
5a044d0671
Tests: Reset environment before performing assertions in populate_network() tests.
...
This aims to avoid affecting other tests in case of failure.
Follow-up to [60954], [61420].
See #64225 .
Built from https://develop.svn.wordpress.org/trunk@61423
git-svn-id: http://core.svn.wordpress.org/trunk@60735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-02 22:12:32 +00:00
Weston Ruter
b5db355a2f
Tests: Update regex to match PHP security releases in addition to stable releases.
...
PHP 8.3 changed from "Active support" to "Security fixes only" on January 1, 2026.
Follow-up to [61421], [33937].
Props mukesh27, westonruter.
See #33758 .
Built from https://develop.svn.wordpress.org/trunk@61422
git-svn-id: http://core.svn.wordpress.org/trunk@60734 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-01 08:45:32 +00:00
Sergey Biryukov
186223c274
Happy New Year! 🎄
...
Update copyright year to 2026 in `license.txt` and bundled themes.
Follow-up to [18201], [23306], [28064], [36855], [36856], [39659], [40241], [42424], [46719], [46720], [47025], [47026], [49915], [52427], [55024], [57235], [59568], [59569].
Props mukesh27.
Built from https://develop.svn.wordpress.org/trunk@61421
git-svn-id: http://core.svn.wordpress.org/trunk@60733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2026-01-01 00:07:29 +00:00
Sergey Biryukov
fd3d5f1f41
Tests: Use assertSame() in populate_network() tests.
...
This ensures that not only the return values match the expected results, but also that their type is the same.
Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.
Follow-up to [60954].
See #64324 .
Built from https://develop.svn.wordpress.org/trunk@61420
git-svn-id: http://core.svn.wordpress.org/trunk@60732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-31 19:02:33 +00:00
Sergey Biryukov
7340ebcae3
Upgrade/Install: Update sodium_compat to v1.24.0.
...
The latest version includes a security fix to ensure that the public key is on the prime order subgroup.
References:
* [https://github.com/paragonie/sodium_compat/releases/tag/v1.24.0 sodium_compat 1.24.0 release notes]
* [https://github.com/paragonie/sodium_compat/compare/v1.23.0...v1.24.0 Full list of changes in sodium_compat 1.24.0]
Follow-up to [55699], [58752], [58753], [60787], [60905].
Props paragoninitiativeenterprises, johnbillion, SergeyBiryukov.
Fixes #64462 .
Built from https://develop.svn.wordpress.org/trunk@61419
git-svn-id: http://core.svn.wordpress.org/trunk@60731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-30 22:55:37 +00:00
jonsurrell
fe6a992df0
Use the HTML API to generate style tags.
...
The HTML API escapes `<style>` tag contents to ensure the correct HTML structure. Common HTML escaping is unsuitable for `<style>` tags because they contain "raw text." The additional safety allows other restrictions, such as rejecting content with `<>`, to be relaxed or removed because the resulting tag will be well-formed.
Developed in https://github.com/WordPress/wordpress-develop/pull/10656 .
Props jonsurrell, westonruter, dmsnell, ramonopoly, soyebsalar01, drw158, sabernhardt.
See #64418 .
Built from https://develop.svn.wordpress.org/trunk@61418
git-svn-id: http://core.svn.wordpress.org/trunk@60730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-30 13:03:34 +00:00
Sergey Biryukov
b9a793c0f1
Tests: Use assertSame() in wp_count_posts() tests.
...
This ensures that not only the return values match the expected results, but also that their type is the same.
Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.
Follow-up to [1323/tests], [25554], [27081], [60788].
Props costdev, SergeyBiryukov.
See #64324 .
Built from https://develop.svn.wordpress.org/trunk@61417
git-svn-id: http://core.svn.wordpress.org/trunk@60729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-29 23:15:37 +00:00
Weston Ruter
2ab763418b
Script Loader: Warn when a registered style has invalid path data and allow inlining empty stylesheets.
...
When a stylesheet is registered with a `path` that does not exist or which is not readable, then a `_doing_it_wrong()` is now issued. Previously, paths that did not exist were silently skipped; paths for empty styles were also needlessly skipped, since `wp_filesize()` also returns `0` for the failure case.
Developed in https://github.com/WordPress/wordpress-develop/pull/10653
Follow-up to [50836].
Props westonruter, jonsurrell, soyebsalar01.
See #52620 .
Fixes #64447 .
Built from https://develop.svn.wordpress.org/trunk@61416
git-svn-id: http://core.svn.wordpress.org/trunk@60728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-29 19:01:38 +00:00
jonsurrell
c900da708a
Scripts: Remove non-HTML5 script support.
...
Remove the following behaviors that are obsolete in HTML5:
- CDATA wrappers around `SCRIPT` tag contents.
- Conversion of boolean attributes to strings (attribute `async="async"` becomes `async`).
HTML5 was released in 2008 and data suggests virtually all WordPress sites are served as HTML5. See #59883 for more details.
Developed in https://github.com/WordPress/wordpress-develop/pull/10660 .
Props jonsurrell, westonruter, azaozz, soyebsalar01, dmsnell.
Fixes #64442 . See #59883 .
Built from https://develop.svn.wordpress.org/trunk@61415
git-svn-id: http://core.svn.wordpress.org/trunk@60727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-29 11:34:29 +00:00
jonsurrell
7efd772694
Scripts: Remove CDATA script wrappers in WP Admin.
...
Fix a regression from [61411] where CDATA wrappers were added to `SCRIPT` tags in WP Admin.
Developed in https://github.com/WordPress/wordpress-develop/pull/10666 .
Follow-up to [61411].
Props sabernhardt.
See #64428 , #59883 .
Built from https://develop.svn.wordpress.org/trunk@61414
git-svn-id: http://core.svn.wordpress.org/trunk@60726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-29 10:49:33 +00:00
Sergey Biryukov
9bde0cd612
Tests: Use assertSame() in some newly introduced tests.
...
This ensures that not only the return values match the expected results, but also that their type is the same.
Going forward, stricter type checking by using `assertSame()` should generally be preferred to `assertEquals()` where appropriate, to make the tests more reliable.
Follow-up to [60490], [60524].
See #64324 .
Built from https://develop.svn.wordpress.org/trunk@61413
git-svn-id: http://core.svn.wordpress.org/trunk@60725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-28 22:59:34 +00:00
Sergey Biryukov
bfd2fefb84
Docs: Improve description for add_settings_section().
...
Follow-up to [13177], [15180].
See #64224 .
Built from https://develop.svn.wordpress.org/trunk@61412
git-svn-id: http://core.svn.wordpress.org/trunk@60724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-27 23:57:35 +00:00
jonsurrell
5e1414562a
Scripts: Remove default type attribute from tags.
...
`SCRIPT`, `STYLE`, and stylesheet `LINK` tags do not require a type attribute since the HTML5 standard was released in 2008. Removing the type attribute simplifies logic and normalizes the produced HTML content.
Developed in https://github.com/WordPress/wordpress-develop/pull/10658 .
Follow-up to [46164].
Props hardikhuptechdev, jonsurrell, dmsnell, westonruter.
Fixes #64428 . See #59883 , #64442 .
Built from https://develop.svn.wordpress.org/trunk@61411
git-svn-id: http://core.svn.wordpress.org/trunk@60723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-26 13:16:34 +00:00
Sergey Biryukov
4b738b966a
Plugins: Update plugin compatibility text to remove obsolete percentage-based number.
...
Follow-up to [12157], [12407], [42631].
Props danieltj, bridgetwillard, davidbaumwald, subrataemfluence, garrett-eclipse, SergeyBiryukov.
Fixes #44090 .
Built from https://develop.svn.wordpress.org/trunk@61410
git-svn-id: http://core.svn.wordpress.org/trunk@60722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-26 13:06:38 +00:00
jonsurrell
595ea71cb0
Tests: Update fonts tests to use semantic HTML comparison.
...
This aims to make the tests more robust.
Follow-up to [60295], [61391], [61392].
Props jonsurrell.
See #64225 .
Built from https://develop.svn.wordpress.org/trunk@61409
git-svn-id: http://core.svn.wordpress.org/trunk@60721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-26 11:53:35 +00:00
Sergey Biryukov
adee6e13b6
Help/About: Simplify help text on Updates screen to account for third-party updates.
...
Follow-up to [14837], [26818], [33704].
Props NekoJonez, costdev, oglekler, SergeyBiryukov.
Fixes #57672 .
Built from https://develop.svn.wordpress.org/trunk@61408
git-svn-id: http://core.svn.wordpress.org/trunk@60720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-25 23:32:34 +00:00
Sergey Biryukov
0bf74deeec
Tests: Rename the admin/includesUser.php test file to be more descriptive.
...
* Include the path, file name, and function name to better indicate the tested function.
* Move `@covers` annotation to the test class level.
Follow-up to [49109].
Props poena.
See #53010 .
Built from https://develop.svn.wordpress.org/trunk@61407
git-svn-id: http://core.svn.wordpress.org/trunk@60719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-24 23:53:35 +00:00
John Blackbourn
94401e78ce
Upgrade/Install: Correct and improve various docblocks relating to upgrades.
...
See #64224
Built from https://develop.svn.wordpress.org/trunk@61406
git-svn-id: http://core.svn.wordpress.org/trunk@60718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-24 17:08:34 +00:00
Weston Ruter
4ab8f3d7f2
Export: Fix fatal error when passing null to wxr_cdata() by casting passed value to string.
...
This ensures that `wp_is_valid_utf8()` does not cause a type error since it only accepts strings.
Developed in https://github.com/WordPress/wordpress-develop/pull/10595
Follow-up to [60630].
Props hbhalodia, westonruter, desrosj, albigdd, jorbin.
See #38044 .
Fixes #64347 .
Built from https://develop.svn.wordpress.org/trunk@61405
git-svn-id: http://core.svn.wordpress.org/trunk@60717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-24 06:48:31 +00:00
Sergey Biryukov
3429087f6c
Code Modernization: Replace isset() with null coalescing in WP_Roles::get_role().
...
Since PHP 7.0 introduced the [https://www.php.net/manual/en/migration70.new-features.php#migration70.new-features.null-coalesce-op null coalescing operator], and WordPress now requires at least PHP 7.2.24, `isset( $var ) ? $var : null` ternary checks can be safely replaced with the more concise `$var ?? null` syntax.
As some new code using the null coalescing operator has already been introduced into core in recent releases, this commit continues with the code modernization by implementing incremental changes for easier review.
Follow-up to [2703], [61403].
Props dilipbheda, mukesh27, spacedmonkey, SergeyBiryukov.
Fixes #63216 . See #58874 .
Built from https://develop.svn.wordpress.org/trunk@61404
git-svn-id: http://core.svn.wordpress.org/trunk@60716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-23 21:20:31 +00:00
Sergey Biryukov
e1e3fc707b
Code Modernization: Replace some isset() ternary checks with null coalescing.
...
Since PHP 7.0 introduced the [https://www.php.net/manual/en/migration70.new-features.php#migration70.new-features.null-coalesce-op null coalescing operator], and WordPress now requires at least PHP 7.2.24, `isset( $var ) ? $var : null` ternary checks can be safely replaced with the more concise `$var ?? null` syntax.
As some new code using the null coalescing operator has already been introduced into core in recent releases, this commit continues with the code modernization by implementing incremental changes for easier review.
Props seanwei, getsyash, krupalpanchal, wildworks, jorbin, SergeyBiryukov.
Fixes #63430 . See #58874 .
Built from https://develop.svn.wordpress.org/trunk@61403
git-svn-id: http://core.svn.wordpress.org/trunk@60715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-22 23:14:38 +00:00
Weston Ruter
a12a6154c3
Docs: Improve specificity of PHP types in functions.wp-scripts.php and functions.wp-styles.php.
...
These files now adhere to PHPStan level 8.
Developed in https://github.com/WordPress/wordpress-develop/pull/10652
Follow-up to [61362], [61358].
See #64238 .
Built from https://develop.svn.wordpress.org/trunk@61402
git-svn-id: http://core.svn.wordpress.org/trunk@60714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-22 20:45:31 +00:00
Weston Ruter
641cf5a127
Script Loader: Fix script module fetchpriority calculation when dependent with higher priority is not enqueued.
...
Developed in https://github.com/WordPress/wordpress-develop/pull/10651
Follow-up to [60931], [60704].
Props westonruter, jonsurrell, youknowriad.
See #61734 .
Fixes #64429 .
Built from https://develop.svn.wordpress.org/trunk@61401
git-svn-id: http://core.svn.wordpress.org/trunk@60713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-22 20:20:33 +00:00
oandregal
36be5bb9ae
Theme_JSON_Resolver: check for WP_Post in query.
...
Props oandregal, mcsf, westonruter, mukesh27.
Fixes #64434 .
Built from https://develop.svn.wordpress.org/trunk@61400
git-svn-id: http://core.svn.wordpress.org/trunk@60712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-22 15:57:37 +00:00
wildworks
1033c6c05e
Widgets: Insert widgets into the selected sidebar correctly in accessibility mode.
...
Renames variables to resolve conflict with outer scope variables, fixing widget placement in selected sidebars.
Props joedolson, sabernhardt, vybiral, wildworks.
Fixes #64380 .
Built from https://develop.svn.wordpress.org/trunk@61399
git-svn-id: http://core.svn.wordpress.org/trunk@60711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-22 10:42:35 +00:00
Weston Ruter
edccc70d4b
Filesystem API: Resolve FIXME comment for WP_Filesystem_Direct::getchmod() by explicitly returning '0' in error case.
...
Developed in https://github.com/WordPress/wordpress-develop/pull/10637
Follow-up to [11831].
Props vietcgi, westonruter.
See #10304 .
Fixes #64426 .
Built from https://develop.svn.wordpress.org/trunk@61398
git-svn-id: http://core.svn.wordpress.org/trunk@60710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-22 01:18:31 +00:00
Weston Ruter
46045c50d7
Script Loader: Fix adding default version to script/style URL when args are supplied via enqueued handle.
...
Also fixes phpdoc for some member variables of `WP_Scripts` and `WP_Styles`.
Developed in https://github.com/WordPress/wordpress-develop/pull/10608
Follow-up to [61358].
Props westonruter, peterwilsoncc.
See #64224 , #64238 .
Fixes #64372 .
Built from https://develop.svn.wordpress.org/trunk@61397
git-svn-id: http://core.svn.wordpress.org/trunk@60709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-22 00:56:42 +00:00
Sergey Biryukov
30538e82f2
Docs: Correct DocBlock formatting for png:IHDR.color-type-orig property test.
...
Follow-up to [60246].
Props mukesh27, adamsilverstein.
See #64224 .
Built from https://develop.svn.wordpress.org/trunk@61396
git-svn-id: http://core.svn.wordpress.org/trunk@60708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-21 23:48:31 +00:00
Sergey Biryukov
df20102a35
Tests: Correst some test class names per the naming conventions.
...
Follow-up to [50167], [50409], [56748].
See #64225 .
Built from https://develop.svn.wordpress.org/trunk@61395
git-svn-id: http://core.svn.wordpress.org/trunk@60707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-20 23:16:31 +00:00
Sergey Biryukov
6ab237015f
Tests: Update scripts tests to use semantic HTML comparison.
...
This aims to make the tests more robust.
Follow-up to [50167], [60295], [61391], [61392].
Props jonsurrell.
See #64225 .
Built from https://develop.svn.wordpress.org/trunk@61394
git-svn-id: http://core.svn.wordpress.org/trunk@60706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-19 23:18:30 +00:00
Sergey Biryukov
2c659fa2da
Tests: Use assertEqualHTML() in styles HTML tests.
...
This aims to make the tests more robust.
Follow-up to [287/tests], [749/tests], [25786], [31031], [36550], [46164], [48937], [52036], [61084], [61391].
Props jonsurrell.
See #64225 .
Built from https://develop.svn.wordpress.org/trunk@61392
git-svn-id: http://core.svn.wordpress.org/trunk@60704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-18 21:58:29 +00:00
Sergey Biryukov
a08ec7e522
Tests: Use assertEqualHTML() in Script Modules HTML tests.
...
This aims to make the tests more robust.
Follow-up to [58579].
Props jonsurrell.
See #64225 .
Built from https://develop.svn.wordpress.org/trunk@61391
git-svn-id: http://core.svn.wordpress.org/trunk@60703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-17 23:39:37 +00:00
jorgefilipecosta
c3ad8bbe52
Abilities API: Enhance WP_Ability validation for execute_callback and permission_callback.
...
Abilities API allows for extending WP_Ability by providing ability_class during the ability registration. This is meant to unlock complex abilities holding some sort of state or logic that requires multiple helper methods.
In all of those scenarios you would ovewrite execute or do_execute method.
However, because the check for execute_callback is in constructor, then in order to register an ability with ability_class overwrite, you have to BOTH: provide do_execute and provide a dummy execute_callback. The same need happens for permission_callback.
This commit fixes the issue execute_callback and permission_callback are now optional when a class is provided.
Props artpi, swissspidy, jorgefilipecosta, mindctrl.
Fixes #64407 .
Built from https://develop.svn.wordpress.org/trunk@61390
git-svn-id: http://core.svn.wordpress.org/trunk@60702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-17 15:29:38 +00:00
Weston Ruter
4d1374325b
Coding Standards: Improve formatting/readability of if statement in WP_Styles constructor.
...
Follow-up to [46287].
See #64226 , #42804 .
Built from https://develop.svn.wordpress.org/trunk@61389
git-svn-id: http://core.svn.wordpress.org/trunk@60701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-17 06:57:40 +00:00
Sergey Biryukov
8ec8ae6eda
Script Loader: Check if $_wp_admin_css_colors is set in wp_style_loader_src().
...
This aims to avoid PHP warnings if the `colors` dependency is loaded or the `style_loader_src` filter is used in a context where the `$_wp_admin_css_colors` global does not exist.
Follow-up to [7976].
Props crstauf, petitphp, SergeyBiryukov.
Fixes #61302 .
Built from https://develop.svn.wordpress.org/trunk@61388
git-svn-id: http://core.svn.wordpress.org/trunk@60700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-12-16 23:38:34 +00:00