Commit Graph

50934 Commits

Author SHA1 Message Date
audrasjb
73540ca808 Coding Standards: Use sprintf() for correct i18n in wp_unique_id_from_values().
Follow-up to [60075], [60079].

Fixes #62985.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 14:31:31 +00:00
Adam Silverstein
6fd9b34405 Media: prevent uploading image types the server doesn’t support.
Normalize behavior between uploading in the media library and uploading directly to the block editor.  Now, when uploading an image with a mime type the server does not support (either in the media library or the block editor), the user will see an error message “This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading”.

Alos, add a new filter `wp_prevent_unsupported_mime_type_uploads` which determines whether the server should prevent uploads for image types it doesn't support. The default value is true and the filter also receives the uploaded image mime type.

Props: joomskys, adamsilverstein, azaozz, swissspidy, joemcgill, flixos90, audrasjb. 

Fixes #61167


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


git-svn-id: http://core.svn.wordpress.org/trunk@59420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 14:07:53 +00:00
desrosj
0f97fb14d1 Build/Test Tools: Update 3rd party GitHub Actions.
This updates the following GitHub Actions:
- `actions/upload-artifact` from `4.6.1` to `4.6.2`
- `actions/download-artifact` from `4.1.9` to `4.2.1`
- `actions/cache` from `4.2.2` to `4.2.3`

Though these are minor updates, they include a hardening change, switching to masking cache entry tokens in debug logs.

Fixes #62221.
Built from https://develop.svn.wordpress.org/trunk@60083


git-svn-id: http://core.svn.wordpress.org/trunk@59419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 14:06:29 +00:00
desrosj
76028a3d29 Build/Test Tools: Add Slack notifications and auto-retry to linting workflow.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@60082


git-svn-id: http://core.svn.wordpress.org/trunk@59418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 13:32:27 +00:00
desrosj
28d9c94ad7 Build/Test Tools: Mount correct volume directory for devcontainer.
This switches to mounting the current directory instead of the one above the working directory in the mounted volume, which can include many directories of unrelated projects.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59417 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 13:11:25 +00:00
desrosj
7169c11ee8 Build/Test Tools: Prevent Dependabot workflow runs in other mirrors.
Currently, workflows are configured to only run for `wordpress-develop` or when pull requests are opened where forks and mirrors are the base repository.

Because a Dependabot configuration is present in the repository, it cannot be turned off for mirrors. This results in workflows running for all Dependabot PRs, which is problematic for private mirrors and needlessly consumes minutes and resources.

Props swissspidy, johnbillion.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@60080


git-svn-id: http://core.svn.wordpress.org/trunk@59416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 13:02:24 +00:00
Joe McGill
98a3f5f11c Editor: Fix translators note in wp_unique_id_from_values().
Follow up to [60075] to fix a typo.

Props mukesh27, johnbillion.
See #62985.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 12:54:22 +00:00
Joe McGill
9600fbf688 Editor: Update packages for 6.8 RC 1.
Syncs @wordpress/* packages to the 'wp-6.8' npm tag.

Props mamaduka, audrasjb.
See #62887.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 12:48:38 +00:00
audrasjb
69998027a2 Twenty Eleven: Improve documentation for twentyeleven_attachment_size filter.
Follow-up to [25625].

Props sabernhardt.
Fixes #63160.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 10:17:29 +00:00
Mamaduka
3bad234b73 Editor: Revert the new default rendering mode for Pages.
This fully reverts changes from #61811 while leaving infrastructure in place for consumers to enable different default rendering modes for their post types.

Props mamaduka, joemcgill, mtdkei.
Fixes #63139.
Built from https://develop.svn.wordpress.org/trunk@60076


git-svn-id: http://core.svn.wordpress.org/trunk@59412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 06:45:28 +00:00
Peter Wilson
886fb31207 Editor: Tidy up _doing_it_wrong() call in wp_unique_id_from_values().
Adds a translator note not to translate the parameter name `$data` and removes an unused `sprintf()` that doesn't contain any placeholders.

Props peterwilsoncc, joemcgill.
Fixes #62985.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59411 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 01:47:25 +00:00
audrasjb
5beb28bd39 Coding Standards: Fix a trailing indentation issue after [60073].
Follow-up to [60073].

See #62163.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 00:04:25 +00:00
audrasjb
46cb039f26 REST API: exclude rest_route from get_params() if pretty permalinks are disabled.
This changeset introduces a modification to the `get_params()` method within the WordPress REST API. The change ensures that the `rest_route` parameter is excluded from the parameters returned when pretty permalinks are not enabled. This update enhances the developer experience by ensuring that the parameters returned by `get_params()` are relevant and do not include unnecessary values, thereby reducing potential confusion and errors.

Props westonruter, TimothyBlynJacobs, audrasjb, debarghyabanerjee, dilip2615, shanemuir, peterwilsoncc.
Fixes #62163.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-24 23:59:35 +00:00
Sergey Biryukov
94bac1c6b3 Coding Standards: Remove a one-time variable in WP_Privacy_Requests_Table::get_request_counts().
This allows the `$wpdb::prepare()` call to be picked up correctly by PHPCS.

Follow-up to [43008], [45448].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@60072


git-svn-id: http://core.svn.wordpress.org/trunk@59408 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-24 19:59:33 +00:00
Aaron Jorbin
58dbe3e577 Coding Standards: Update commits to ignore for blaming for 6.8
This adds white space only changes made during 6.8 to the list of commits which we instruct git blame to ignore. Excluding them helps to reduce the noise when doing code archaeology.

Follow-up to [53007].

Props jorbin, peterwilsoncc.
See #62279.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-24 16:57:33 +00:00
Joe McGill
d5a86a55ab Interactivity API: Apply the same directive name restrictions as the client.
This adds the same logic to filter directive data attributes to ignore invalid data attributes that is applied in the client to avoid processing directives on the server that will not be processed in the client.

Props jonsurrell, SirLouen.
Fixes #62426.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59406 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-24 14:53:28 +00:00
Sergey Biryukov
01428753d0 Coding Standards: Remove a one-time variable in WP_MS_Sites_List_Table::prepare_items().
This allows the `$wpdb::prepare()` call to be picked up correctly by PHPCS.

Follow-up to [28712], [55656].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.
Built from https://develop.svn.wordpress.org/trunk@60069


git-svn-id: http://core.svn.wordpress.org/trunk@59405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-23 14:48:31 +00:00
Sergey Biryukov
984294a965 Tests: Use assertSame() in REST API attachments controller 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 [48291], [50124], [57603].

See #62278.
Built from https://develop.svn.wordpress.org/trunk@60068


git-svn-id: http://core.svn.wordpress.org/trunk@59404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-22 16:08:25 +00:00
Sergey Biryukov
e12d727e75 Tests: Use assertSame() in REST API schema sanitization 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 [39061], [48937].

See #62278.
Built from https://develop.svn.wordpress.org/trunk@60067


git-svn-id: http://core.svn.wordpress.org/trunk@59403 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-21 23:48:24 +00:00
desrosj
aea45374b2 Build/Test Tools: Use Dependabot to manage npm dependencies.
This expands the use of Dependabot to also manage npm dependencies by configuring several groups of related packages. After [59983], pull requests for the majority of these updates can now be staged without encountering test failures.

Props joemcgill, peterwilsoncc, swissspidy, johnbillion.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@60066


git-svn-id: http://core.svn.wordpress.org/trunk@59402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-21 18:29:26 +00:00
desrosj
4eaf568a38 Build/Test Tools: Re-add GitHub App.
Without this, workflow runs are not triggered by commits made by the workflow.

Follow up to [59983], [60052], [60059], [60063], [60064].

See #62221.
Built from https://develop.svn.wordpress.org/trunk@60065


git-svn-id: http://core.svn.wordpress.org/trunk@59401 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-21 18:02:26 +00:00
desrosj
2c96bbb75c Build/Test Tools: Use correct context value for forks.
Follow up to [59983], [60052], [60059], [60063].

See #62221.
Built from https://develop.svn.wordpress.org/trunk@60064


git-svn-id: http://core.svn.wordpress.org/trunk@59400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-21 17:35:26 +00:00
desrosj
b68a7b5200 Build/Test Tools: Eliminate the need for custom tokens.
This reworks the workflow files introduced in [59983] to eliminate the need for a custom app token.

Follow up to [59983], [60052], [60059].

See #62221.
Built from https://develop.svn.wordpress.org/trunk@60063


git-svn-id: http://core.svn.wordpress.org/trunk@59399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-21 16:35:27 +00:00
audrasjb
8eb3443f31 General: Improve aria-current management in get_custom_logo().
This changeset fixes a edge case in `get_custom_logo()` where a page was set for the homepage without any front page in Settings > Reading and the `aria-current` attribute wasn't present on the logo link.

Props bschneidewind, audrasjb, siliconforks, sabernhardt, faisal03, shailu25, peterwilsoncc.
Fixes #62879.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-21 13:56:29 +00:00
Peter Wilson
e895a309d3 Site Editor: Fix PHP warning pre-loading page REST requests.
Fix a PHP warning when opening a page directly in the site editor, eg by navigating to the URL `/wp-admin/site-editor.php?p=%2Fpage&postId=200`, caused by an undefined variable name.

Props abcd95, joemcgill, narenin, soyebsalar, websiteredev, wildworks.
Fixes #63122.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-20 23:03:30 +00:00
Sergey Biryukov
c4a4c19e24 Build/Test Tools: Enable starting Xdebug on trigger in local environment.
This aims to facilitate setting up Xdebug locally without editing the `tools/local-env/php-config.ini` file, which is not ignored by Git by default.

Note that this does not enable Xdebug by default, since both `LOCAL_PHP_XDEBUG=true` and `LOCAL_PHP_XDEBUG_MODE=debug` are additionally required for Xdebug to work.

Props SirLouen, jules-colle, johnbillion, pento.
Fixes #49953.
Built from https://develop.svn.wordpress.org/trunk@60060


git-svn-id: http://core.svn.wordpress.org/trunk@59396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-20 14:12:26 +00:00
desrosj
ff69524db8 Build/Test Tools: Use the wordpress-develop-pr-bot app for changes.
This switches to using the `wordpress-develop-pr-bot` GitHub app when authoring commits instead of masquerading as Dependabot.

Follow up to [59983], [60052].

See #62221.
Built from https://develop.svn.wordpress.org/trunk@60059


git-svn-id: http://core.svn.wordpress.org/trunk@59395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-20 13:22:26 +00:00
audrasjb
e0dfa1ff54 General: Remove noopener from links opening in a new tab in wp_list_bookmarks().
This changeset removes the automatic addition of `rel="noopener"` from links targeting a new tab via `target="_blank"` in the `wp_list_bookmarks()` function. Since this was introduced, supported browsers have changed their security policies and no longer allow the opened link to have JavaScript access to the previous tab. This also removes the unit test cases previously located in `wpListBookmarks.php` as they were dedicated to test the presence of `rel="noopener"`.

Follow-up to [52061], [59120].

Props audrasjb, rvouill, marineevain, jeremy80.
Fixes #63096.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-19 23:15:35 +00:00
Sergey Biryukov
e8fc75dfe1 Build/Test Tools: Revert [60056] pending test failure investigation.
See #49953.
Built from https://develop.svn.wordpress.org/trunk@60057


git-svn-id: http://core.svn.wordpress.org/trunk@59393 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-19 23:02:27 +00:00
Sergey Biryukov
3bf92ea78e Build/Test Tools: Enable starting Xdebug with the PHP request in local environment.
This aims to facilitate setting up Xdebug locally without editing the `tools/local-env/php-config.ini` file, which is not ignored by Git by default.

Note that this does not enable Xdebug by default, since both `LOCAL_PHP_XDEBUG=true` and `LOCAL_PHP_XDEBUG_MODE=debug` are additionally required for Xdebug to work.

Props SirLouen, jules-colle, johnbillion, pento.
Fixes #49953.
Built from https://develop.svn.wordpress.org/trunk@60056


git-svn-id: http://core.svn.wordpress.org/trunk@59392 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-19 22:10:29 +00:00
joedolson
31c2c95700 Themes: A11y: Merge omitted changes to support focus-visible.
Merge PHP changes to ensure that `focus` doesn't match `focus-visible` in `WP_Theme_JSON`, overlooked in previous merge. Follow up to [59854].

Props huubl, joemcgill, joedolson.
Fixes #62906.
Built from https://develop.svn.wordpress.org/trunk@60055


git-svn-id: http://core.svn.wordpress.org/trunk@59391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-19 18:46:29 +00:00
Adam Silverstein
3cc90101d3 Customizer: fix logo cropping.
Address a failure in the customizer site logo cropping after r60031. Check to ensure library exists before the call to findWhere.

Follow up to r60031.

Props: domainsupport, joemcgill, joedolson, kawsar007, addweb-solution-pvt-ltd, mukesh27.

Fixes #63121.



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


git-svn-id: http://core.svn.wordpress.org/trunk@59390 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-19 16:27:28 +00:00
desrosj
e2e78141bd Build/Test Tools: Increase timeout value for Slack message jobs.
Because of how dependent jobs and queuing works in GitHub Actions, it’s common for workflows to be completed with the exception of sending Slack notifications.

“The waiting is the hardest part”, and occasionally these jobs hit the `10` minute timeout value before their turn comes up.

See #62221.
Built from https://develop.svn.wordpress.org/trunk@60053


git-svn-id: http://core.svn.wordpress.org/trunk@59389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-19 13:19:26 +00:00
desrosj
5a5edd03ef Build/Test Tools: Use ‘pull_request.head.ref` when checking built files.
Because `pull_request_target` happens in the context of the base branch, attempting to checkout `github.head_ref` results in a failure when the workflow comes from a fork.

This adjusts the options passed to `actions/checkout` to use the repository that actually contains the test branch.

See #62221.
Built from https://develop.svn.wordpress.org/trunk@60052


git-svn-id: http://core.svn.wordpress.org/trunk@59388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-19 12:32:26 +00:00
desrosj
f283e36b50 Build/Test Tools: Update 3rd party actions.
This updates the following 3rd party actions:

- `actions/setup-node` from `4.2.0` to `4.3.0`
- `actions/upload-artifact` from `4.6.0` to `4.6.1`
- `ramsey/composer-install` from `3.0.0` to `3.1.0`
- `actions/cache` from `4.2.0` to `4.2.2`
- `actions/download-artifact` from `4.1.8` to `4.1.9`
- `codecov/codecov-action` from `5.3.1` to `5.4.0`

See #62221.
Built from https://develop.svn.wordpress.org/trunk@60051


git-svn-id: http://core.svn.wordpress.org/trunk@59387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-19 12:25:21 +00:00
desrosj
56e287b133 Build/Test Tools: Pin full commit SHA for rhysd/actionlint.
This is a recommended best practice for hardening workflows that are utilizing 3rd party actions.

Follow up to [59679].

Props johnbillion.
See #62221.
Built from https://develop.svn.wordpress.org/trunk@60050


git-svn-id: http://core.svn.wordpress.org/trunk@59386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-19 12:18:27 +00:00
Aaron Jorbin
e382a52cde Coding Standards: Fix alignment in wp_check_filetype_and_ext.
Follow-up to [59315].

See #62272, #62279.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 23:41:26 +00:00
Aaron Jorbin
c9d7937947 Coding Standards: Fix alignment in WP_Query::parse_tax_query.
Follow-up to [59766].

See #59516, #62279.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 23:34:26 +00:00
Aaron Jorbin
2a39b722ba Coding Standards: Fix alignment in WP_Image_Editor_Imagick::thumbnail_image.
Follow-up to [59589].

See #36477, #62279.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59383 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 23:25:31 +00:00
Aaron Jorbin
a389073064 Coding Standards: Fix alignment in locate_block_template.
Follow-up to [59449].

See #62053, #62279.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 22:08:26 +00:00
Sergey Biryukov
00b99baf07 Coding Standards: Remove leading and trailing spaces in URLs on the Menus screen.
Follow-up to [42343].

Props kkmuffme.
Fixes #62978.
Built from https://develop.svn.wordpress.org/trunk@60045


git-svn-id: http://core.svn.wordpress.org/trunk@59381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 21:48:25 +00:00
Aaron Jorbin
b6e009f4dd Coding Standards: Fix alignment in WP_REST_Widgets_Controller::prepare_item_for_response.
Follow-up to [59899].

See #56481, 62279.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 20:39:23 +00:00
Aaron Jorbin
36ae833962 Coding Standards: Correct alignment in parameters passed to wp_editor.
Follow-up to [59188].

See #29838, #62279.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 20:09:25 +00:00
audrasjb
dd948b4e4b Post WordPress 6.8 Beta 3 version bump.
Built from https://develop.svn.wordpress.org/trunk@60042


git-svn-id: http://core.svn.wordpress.org/trunk@59378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 15:29:22 +00:00
audrasjb
d1a24c90c3 WordPress 6.8 Beta 3.
Built from https://develop.svn.wordpress.org/trunk@60041


git-svn-id: http://core.svn.wordpress.org/trunk@59377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 15:11:27 +00:00
joedolson
d4330af271 Bundled Themes: A11y: Dismiss submenus with esc in Twenty Twenty.
Allow submenus in Twenty Twenty to be dismissed using the `esc` key to meet WCAG 1.4.13. Set focus to previous submenu parent on `esc`, and ensure that after escaping the last submenu, tab moves to the next parent item, not back into the submenu.

Props lcarevic, rcreators, pratiklondhe, poena, karmatosed, chaion07, audrasjb, mehdi01, mohonchandra, najmulsaju, saurabhdhariwal, ugyensupport, shailu25.
Fixes #49950.
Built from https://develop.svn.wordpress.org/trunk@60040


git-svn-id: http://core.svn.wordpress.org/trunk@59376 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 14:41:27 +00:00
audrasjb
2f1611e273 Customize: Improve alignment of theme wrapper.
This changeset updates the class used for the theme wrapper in the customizer, which fixes an alignment issue occuring when searching a theme on WordPress.org from the customizer interface.

Props kharisblank, ankitkumarshah, benazeer, sainathpoojary, mukesh27, kharisblank, parthvataliya, im3dabasia1, sukhendu2002, praful2111, ruchirj, imranhasanraaz, shailu25.
Fixes #62637.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 13:15:22 +00:00
Joe McGill
1c43cd6743 Editor: Fix layout support classes to be generated with a stable ID.
This fixes a bug reported in https://github.com/WordPress/gutenberg/issues/67308 related to the Interactivity API's client-side navigation feature by replacing the incrementally generated IDs with stable hashes derived from the block's layout style definition.

Fixes #62985.
Props darerodz.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 12:43:24 +00:00
Joe McGill
299978551a Themes: Improve error notice when wp_is_block_theme() is called too early.
This is a follow-up to [59968] which improves error handling for when `wp_is_block_theme()` is called too early. Initially, `_doing_it_wrong()` was called in `WP_Theme::is_block_theme()` was called prior to themes being set up, in order to avoid the bug reported in #63062, where doing so would cause parent themes to not be resolved. After further investigation, the issue is only caused by calling `wp_is_block_theme()` before the root theme directory has been registered (e.g., when called on the `muplugins_loaded` hook).

Moving This error message to `wp_is_block_theme()` when `$GLOBALS['wp_theme_directories']` is empty avoids unnecessary error messages.

Props wildworks, sukhendu2002, SirLouen, dinhtungdu, narenin, joemcgill, peterwilsoncc, afragen.
Fixes #63086. See #63062.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 12:30:25 +00:00
Joe McGill
46dd725015 Editor: Update packages for 6.8 Beta 3.
Syncs @wordpress/* packages to the 'wp-6.8' npm tag.

Props mamaduka.
See #62887.

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


git-svn-id: http://core.svn.wordpress.org/trunk@59372 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-18 12:01:36 +00:00