Commit Graph

50943 Commits

Author SHA1 Message Date
audrasjb
e8fbcbdac1 Twenty Twenty-One: Add nav menu toggle behaviors at DOMContentLoaded instead of at the load event.
The `load` event (on `window`) fires after all resources on a page have been loaded, including images. This means that
on a slow connection, the mobile nav menu button may be rendered yet unresponsive to taps between when it first appears
and when the page has fully loaded. This is rectified by switching to the `DOMContentLoaded` event so that the nav menu
behaviors are attached as soon as the DOM has fully loaded.

Reviewed by audrasjb.
Merges [60352] to the 6.8 branch.
Props gernberg, westonruter, sabernhardt.
Fixes #63613.


Built from https://develop.svn.wordpress.org/branches/6.8@60423


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59759 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-07 18:50:33 +00:00
audrasjb
01e357b166 Media: expose height and width attributes to the wp_get_attachment_image_attributes filter.
Include the image height and width in the attributes passed to the `wp_get_attachment_image_attributes` filter. Developers can use this to adjust the width and height attributes returned from the `wp_get_attachment_image_attributes` function.

Reviewed by audrasjb.
Merges [60415] to the 6.8 branch.
Props divinenephron, nacin, Sam_a, wpsmith, anatolbroder, ericlewis, puggan, SergeyBiryukov, spacedmonkey, adamsilverstein, flixos90, sandeepdahiya, SirLouen.
Fixes #14110.


Built from https://develop.svn.wordpress.org/branches/6.8@60420


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-07 17:09:41 +00:00
audrasjb
9fd3e4740d Comments: Remove novalidate attribute from comments form by default.
Browser support for client-side validation is now reliable. Blocking the form submission when there is a missing/invalid field prevents the possibility of losing comment content when bfcache does not restore the previous page when going back.

To retain the `novalidate` attribute, the `comment_form()`'s args now accepts a `novalidate` key which will add the attribute when it is `true`. This can also be supplied by the `comment_form_default_fields filter`, for example:

{{{
add_filter( 'comment_form_defaults', function ( $args ) {
    $args['novalidate'] = true;
    return $args;
} );
}}}

Reviewed by audrasjb.
Merges [60304] to the 6.8 branch.

Fixes #47595.
Props westonruter, joedolson, sabernhardt, afercia, SergeyBiryukov, guddu1315, pfefferle, oglekler, bugnumber9.


Built from https://develop.svn.wordpress.org/branches/6.8@60412


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-05 06:53:38 +00:00
audrasjb
e74c56757f Media: Normalize all space characters to a space in sanitize_file_name().
The `sanitize_file_name()` function normalizes the no-break space to a normal space (`U+0020`) in order to prevent issues saving files with the no-break space in it.

This patch expands the replacement to all space characters, since it’s known that macOS stores a `NARROW NO-BREAK SPACE` (`U+202F`) in screenshot filenames between the time and the am/pm indicator.

There are deeper issues with the way this function works, but this patch resolves a known and common problem without raising any of the deeper refactoring questions.

Reviewed by audrasjb, youknowriad.
Merges [60399] to the 6.8 branch.
Props audrasjb, desrosj, dmsnell, jonsurrell, matt, room34, siliconforks, zieladam, annezazu.
Fixes #62995.


Built from https://develop.svn.wordpress.org/branches/6.8@60411


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-05 06:35:32 +00:00
audrasjb
ea3f5c6084 Revisions: Improve revisions layout on mobile viewports.
On small screens, the restore revision button was mostly hidden due to excessive constraints on overflow height. Fix the overflow issue and ensure that restore revision buttons are always usable.

Reviewed by audrasjb.
Merges [60259] to the 6.8 branch.
Props yogeshbhutkar, getsyash, joedolson.
Fixes #63029.


Built from https://develop.svn.wordpress.org/branches/6.8@60410


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-07-05 06:22:37 +00:00
desrosj
650dd78271 Security: Update composer/ca-bundle to version 1.5.7.
Merges [60320] to the 6.8 branch.

See #63165.
Built from https://develop.svn.wordpress.org/branches/6.8@60369


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-30 16:57:29 +00:00
John Blackbourn
18561ca56a Embeds: Remove screencast.com from oEmbed allow list.
Screencast have updated their URL structure to use a sub-domain and the prior oEmbed endpoint in the allow list now returns a 410 Gone response.

For discussion regarding the legacy endpoint refer to #61941, comment #35 onwards.

Merges [60345] to the 6.8 branch.

See #61941.
Props audrasjb, brhodes, dustintechsmith, joedolson, johnbillion, nikunj8866, paulstanos, peterwilsoncc, sandeepdahiya, sergeybiryukov, sirlouen, swissspidy.

Built from https://develop.svn.wordpress.org/branches/6.8@60354


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-26 19:06:33 +00:00
Peter Wilson
3649fdd1de Emoji: Update Twemoji to version 16.0.1.
Introduces support for Emoji 16:

- replaces emoji support test with splatter 🫟,
- replaces two letter coded flag support test with Sark 🇨🇶,
- introduces the function `emojiRendersEmptyCenterPoint()` to the emoji loader to enable testing of emoji with a single data point.

Not to harp 🪉 on about it, but Emoji 16 is perfect for tiring yourself out 🫩 digging 🪏 up root vegetables 🫜 while visiting Sark 🇨🇶.

Reviewed by audrasjb.
Merges [60227] to the 6.8 branch.

Props westonruter, kraftbj, pento, JeffPaul, abcd95, SergeyBiryukov, dd32, peterwilsoncc.
Fixes #63324.



Built from https://develop.svn.wordpress.org/branches/6.8@60317


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-06-18 01:53:33 +00:00
Peter Wilson
6843ac1660 Build/Test Tools: Adds summaries to each of the Tests_Basic test methods.
Reviewed by jorbin.
(See https://core.trac.wordpress.org/ticket/63390#comment:5)
Merges [60220] to the 6.8 branch.

See #63167.

Built from https://develop.svn.wordpress.org/branches/6.8@60224


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-06 02:41:23 +00:00
Peter Wilson
10196a8e0b Build/Test Tools: Test version in additional config files.
Introduces tests to ensure the version numbers in `package-lock.json` (two instances) and `composer.json` match the WordPress version specified in `version.php`.

In pull requests, the `package-lock.json` file is updated automatically to match the version in `package.json`. The new test is intended to ensure the version numbers are correct in production branches.

Reviewed by jorbin.
Merges [60219], [60221] to the 6.8 branch.

Fixes #63390.

Built from https://develop.svn.wordpress.org/branches/6.8@60223


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-06 02:39:27 +00:00
Peter Wilson
9450c4531e Build/Test Tools: Add version to composer.json.
The lack of a specified version in the composer.json file is causing some unexpected warnings.

Reviewed by peterwilsoncc.
Merges [60211], [60212] to the 6.8 branch with appropriate version number modifications.

Props sirlouen, johnbillion, TobiasBg, desrosj, jorbin.
See #63167.

Built from https://develop.svn.wordpress.org/branches/6.8@60218


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-05-05 01:07:27 +00:00
Aaron Jorbin
7a4341cf80 Post 6.8.1 release bump.
The 6.8 branch is now 6.8.2-alpha

Built from https://develop.svn.wordpress.org/branches/6.8@60210


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-30 17:35:25 +00:00
Aaron Jorbin
16a36cc684 WordPress 6.8.1
Built from https://develop.svn.wordpress.org/branches/6.8@60208


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-30 16:41:31 +00:00
Aaron Jorbin
dfaf4679ef Post WordPress 6.8.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.8@60202


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-28 17:32:27 +00:00
Aaron Jorbin
231925bf15 WordPress 6.8.1 RC1.
Built from https://develop.svn.wordpress.org/branches/6.8@60201


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-28 17:11:24 +00:00
Aaron Jorbin
0091259a72 REST API: Change posts endpoint to ignore_sticky=true by default
This restores the 6.7 and below behavior for the posts endpoint which did not include sticky posts by default.

Follow-up to [59801].

Reviewed by desrosj.
Merges [60197] to the 6.8 branch.

Props nikunj8866, SirLouen, ankitmaru, wildworks, karthikeya01, Mamaduka, spacedmonkey, jorbin.
Fixes #63307. See #35907.

Built from https://develop.svn.wordpress.org/branches/6.8@60200


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-28 16:49:20 +00:00
Aaron Jorbin
703e5d5e92 Update Packages for 6.8.1
This includes the following changes:
- https://github.com/WordPress/gutenberg/pull/69958
- https://github.com/WordPress/gutenberg/pull/70006
- https://github.com/WordPress/gutenberg/pull/70001
- https://github.com/WordPress/gutenberg/pull/69998
- https://github.com/WordPress/gutenberg/pull/70000

Props wildworks, 0mirka00, sourav08, mamaduka, megane9988, jorbin, dsawyers, iamkingsleyf, soean, sc0ttkclark, presstoke, yogeshbhutkar, joen, joedolson, talldanwp, jarekmorawski, yogeshbhutkar, fabiankaegy, justlevine.
Fixes #63366.


Built from https://develop.svn.wordpress.org/branches/6.8@60199


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-28 16:47:40 +00:00
desrosj
a46e5b9c09 Media: Don't try to resize image formats which can't be resized
While having a mime type with an "image" prefix, SVG images are in fact "Scalable Vector Graphics" that can be scaled directly.

Follow-up to [60084].

Reviewed by desrosj.
Backports [60195] to the 6.8 branch.

Props sirlouen, adamsilverstein, audrasjb, pbiron, sainathpoojary, dilipbheda, pratiklondhe.
Fixes #63302. See #61167.
Built from https://develop.svn.wordpress.org/branches/6.8@60196


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-28 15:57:27 +00:00
desrosj
d6d70906d1 Admin bar: Update the "Edit Site" link to 6.7 destination.
This reverts [59910] and changes the "Edit Site" link to be the current template rather than the top-level screen of the Site Editor.

Reviewed by SergeyBiryukov, desrosj.
Merges [60193] to the 6.8 branch.

Props wildworks, joemcgill, poena, westonruter, nickwilmot, marktimemedia, eduwass, lilgames, codeamp, jeffr0, jorbin.
Fixes #63358. See #62368.
Built from https://develop.svn.wordpress.org/branches/6.8@60194


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-28 15:12:27 +00:00
Aaron Jorbin
8913eb2446 About Page: Reduce copy on 6.8 about page.
In finalizing the 6.8 announcement post (https://wordpress.org/news/2025/04/cecil/) it was identified that some of the copy on the 6.8 about page is not an accurate description of what is in 6.8. This copy is receiving a game misconduct penalty and automatic ejection. While the coach could bring on a substitute, a line change is the better option here.

Reviewed by joedolson.
Merges [60183] to the 6.8 branch.

Props abcd95, mukesh27, JeffPaul.
Fixes #63323.

Built from https://develop.svn.wordpress.org/branches/6.8@60190


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-25 19:25:20 +00:00
Aaron Jorbin
dfdd84fc2e Block Hooks: Suppress insertion next to post content wrapper block.
As of [59523], Block Hooks are applied to post content. In order to allow for insertion of a hooked block as first_child or last_child of the containing Post Content block, we wrap the block's post content (as obtained from the DB) in a temporary <!-- wp:post-content --> wrapper block, apply the Block Hooks algorithm to the resulting markup, and remove the wrapper block. (The same technique is applied for the Synced Pattern block -- see [59543] -- as well as the Navigation block.)

However, this caused a problem when a hooked block was marked for insertion before before or after a Post Content block: The logic that's supposed to remove the temporary wrapper block after the Block Hooks algorithm runs erroneously removed that hooked block's delimiter instead of the wrapper block, producing garbled markup as a result.

This changeset fixes the issue by adding a hooked_block_types filter (with PHP_INT_MAX priority) that removes any blocks hooked before or after a Post Content block, if the current context is a post object. This prevents any blocks hooked that way from being "absorbed" into the corresponding post object's content; it retains the ability to hook blocks before and after a Post Content block in any other context (e.g. a template). (The same principle is applied to Synced Pattern and Navigation blocks.)

Reviewed by Jorbin.
Merges [60173] to 6.8 branch.

Props obenland, jorbin, gziolo, bernhard-reiter.
Fixes #63287.

Built from https://develop.svn.wordpress.org/branches/6.8@60189


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-25 19:23:28 +00:00
Aaron Jorbin
40745ab9c3 Themes: Add filter on bulk action fields.
Because validation was added in [59134] to prevent submitting bulk actions with no selected action, sites that remove or change the default bulk actions can fail due to the missing required inputs. Add a filter (bulk_action_observer_ids) that allows modifying the actions accepted to fulfill validation rules.

Reviewed by Jorbin.
Merges [60186] to the 6.8 branch.

Props ethitter, kabir93, jorbin, davidbaumwald, joedolson.
Fixes #63005.

Built from https://develop.svn.wordpress.org/branches/6.8@60188


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-25 18:38:29 +00:00
joedolson
690978a7d3 Editor: Use different keys in array of translatable strings.
[59696] changed the 'Text' tab of the classic editor to 'Code' but Code was already used as a key in the array of translatable text. Since arrays keys need to be unique, this meant that it is possible for the wrong translation to appear in a locale. Using different keys fixes that.

Reviewed by joedolson.
Merges [60182] to the 6.8 branch.

Props joedolson, sabernhardt, justlevine, swissspidy, audrasjb.
Fixes #63269. See #38061.
Built from https://develop.svn.wordpress.org/branches/6.8@60187


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-25 18:28:30 +00:00
Aaron Jorbin
403017b587 Upgrade/Install: Pass stored credentials to WP_Filesystem() in WP_Upgrader.
When using a non-direct filesystem, the call in WP_Upgrader::maintenance_mode() did not include the required credentials, leading to a fatal error as the connection was not initialized properly.

This commit attempts to use the stored credentials if available, and triggers a notice otherwise.

Follow-up to [56341], [58128].

Reviewed by jorbin.
Merges [60107] to the 6.8 branch.

Props SirLouen, hideishi, dd32, tusharaddweb, takuword, SergeyBiryukov.
Fixes #62718.

Built from https://develop.svn.wordpress.org/branches/6.8@60184


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-24 23:18:31 +00:00
Peter Wilson
0d5205144d Media: Prevent Multisite fatal error in legacy file rewrites.
Removes a call to the `is_super_admin()` function in `ms-files.php` as the function isn't available when using the `SHORTINIT` feature, causing fatal errors on systems using file rewrites.

Reverts [59967].

Reviewed by jorbin.
Merges [60170] to the 6.8 branch.

Props audrasjb, desrosj, jeremyfelt, johnjamesjacoby, jorbin, presskopp, verygoode, dd32, joemcgill.
See #36803.
Fixes #63285.

Built from https://develop.svn.wordpress.org/branches/6.8@60171


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-16 22:23:29 +00:00
audrasjb
7cf35fdc15 Post WordPress 6.8 version bump.
Built from https://develop.svn.wordpress.org/branches/6.8@60169


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-15 17:17:27 +00:00
audrasjb
7c4eda5803 WordPress 6.8.
Built from https://develop.svn.wordpress.org/branches/6.8@60167


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-15 15:39:26 +00:00
audrasjb
69fd43fa34 Post WordPress 6.8 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/6.8@60165


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 16:45:23 +00:00
audrasjb
b4dff0939d WordPress 6.8 RC4.
Built from https://develop.svn.wordpress.org/branches/6.8@60164


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 16:18:29 +00:00
audrasjb
e47cd172b7 Upgrade/Install: Update the $_old_files array for 6.8.
Reviewed by joemcgill.


Built from https://develop.svn.wordpress.org/branches/6.8@60163


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 15:29:22 +00:00
desrosj
e64ccc1b2c Bundled Themes: Bump Default Theme versions for release.
This bumps the versions of the following default themes for coordinated release with WordPress 6.8:

- Twenty Ten: `4.4`
- Twenty Eleven: `4.9`
- Twenty Twelve: `4.5`
- Twenty Thirteen: `4.4`
- Twenty Fourteen: `4.2`
- Twenty Fifteen: `4.0`
- Twenty Sixteen: `3.5`
- Twenty Seventeen: `3.9`
- Twenty Nineteen: `3.1`
- Twenty Twenty: `2.9`
- Twenty Twenty-One: `2.5`
- Twenty Twenty-Two: `2.0`
- Twenty Twenty-Five: `1.2`

Twenty Twenty-Three and Twenty Twenty-Four will not be receiving an update at this time.

Reviewed by joemcgill.
Merges [60159] to the 6.8 branch.

Props shailu25, sabernhardt, desrosj, poena, audrasjb.
Fixes #62990.
Built from https://develop.svn.wordpress.org/branches/6.8@60162


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 15:27:20 +00:00
desrosj
61adcc96ce Bundled Themes: Bump Tested up to for Twenty Twenty-Three & Twenty Twenty-Four.
An update for these two default themes will not be released in coordination with WordPress 6.8 due because there were no changes to the source code during the release cycle. However, they should be considered tested with 6.8, and this ensures that the next release properly indicates that.

Reviewed by joemcgill.
Merges [60158] to the 6.8 branch.

Props shailu25, sabernhardt, desrosj, poena, audrasjb.
See #62990.
Built from https://develop.svn.wordpress.org/branches/6.8@60161


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 15:25:24 +00:00
audrasjb
57eb7cf99a Docs: Correct the type of the $return parameter in embed_handler_html filter.
The value cannot be `false` at this point, as the filter is only applied to non-empty embed HTML.

Follow-up to [25726], [46661].

Reviewed by SergeyBiryukov, audrasjb.
Merges [60149] to 6.8 branch.
Props apermo, jasonsa19.
Fixes #63248.


Built from https://develop.svn.wordpress.org/branches/6.8@60157


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 14:31:24 +00:00
desrosj
642e40f50c Editor: Restore static properties for deprecated __experimentalLinkControl.
[59775] resulted in a backwards compatibility break in a now deprecated experimental component, which was stabilized to `LinkControl`. When experimental components are deprecated in favor of being stabilized, the same backwards compatibility policy applies and the shape of the component should not change.

This restores the static properties that were unintentionally removed from the `__experimentalLinkControl` component that was moved to `DeprecatedExperimentalLinkControl`.

Reviewed by joemcgill, wildworks.
Merges [60150] to the 6.8 branch.

Props karthikeya01, mamaduka, joemcgill, fabiankaegy, wildworks.
Fixes #62887.
Built from https://develop.svn.wordpress.org/branches/6.8@60156


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59492 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 14:15:39 +00:00
Peter Wilson
4cd8eed638 Help/About: Add images to the About page.
Updates the images in the About page source with the final versions on the w.org CDN.

Reviewed by ryelle.
Merges [60154] to the 6.8 branch.

Props ryelle, dd32.
See #63025.

Built from https://develop.svn.wordpress.org/branches/6.8@60155


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-14 01:11:26 +00:00
audrasjb
2509837b17 Post WordPress 6.8 RC3 version bump.
Built from https://develop.svn.wordpress.org/branches/6.8@60146


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-08 15:46:27 +00:00
audrasjb
1e43970e22 WordPress 6.8 RC3.
Built from https://develop.svn.wordpress.org/branches/6.8@60145


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-08 15:17:28 +00:00
Joe McGill
37000cde6f Themes: Allow files in a block theme's 'patterns' directory to be filterable.
Since [59872] all PHP files in the 'patterns' directory or subdirectories are auto registered. Adding a filter prior to autoregistration allows theme developers to modify the list of files before the auto registration.

Reviewed by audrasjb.
Merges [60142] to the 6.8 branch

Props webmandesign, joemcgill, jorbin, poena.
Fixes #63212.

Built from https://develop.svn.wordpress.org/branches/6.8@60144


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-08 14:18:28 +00:00
audrasjb
8de7c9a140 REST API: Fix hardcoded table name in WP_Test_REST_Users_Controller.
This changeset fixes failing unit tests on the Hosting test suite because of the hardcoded table name in `WP_Test_REST_Users_Controller::test_get_items_only_fetches_ids_for_head_requests`.

Reviewed by audrasjb, spacedmonkey.
Merges [60141] to the 6.8 branch.
Props antonvlasenko, desrosj.
Fixes #56481.


Built from https://develop.svn.wordpress.org/branches/6.8@60143


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59479 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-08 13:57:24 +00:00
Aaron Jorbin
554d3b073c Docs: Correct the type of the $cache parameter in embed_oembed_html.
The value cannot be false at this point, as the filter is only applied to non-empty output.

Follow-up to [25726], [46661].

Reviewed By peterwilsoncc, jorbin.
Merges [60127] to the 6.8 branch.

Props apermo, xate, SergeyBiryukov.
Fixes #63220.

Built from https://develop.svn.wordpress.org/branches/6.8@60140


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59476 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-08 02:12:22 +00:00
Aaron Jorbin
05afd5d2d4 Docs: Update inline docs for various general template functions.
Reviewed By peterwilsoncc, jorbin.
Merges [60120] and [60121] to the 6.8 branch.

Props dilipbheda, mukesh27, SergeyBiryukov, audrasjb.
Fixes #63215.
See #63166.

Built from https://develop.svn.wordpress.org/branches/6.8@60139


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-08 02:01:29 +00:00
ryelle
8ca9ba7df3 Help/About: Revert subtle color to actually subtle color on Get Involved.
Reviewed By peterwilsoncc.
Merges [60136] to the 6.8 branch.

Props densinakum, courane01.
See #63025.


Built from https://develop.svn.wordpress.org/branches/6.8@60138


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-08 01:07:29 +00:00
Peter Wilson
5b95f30633 Site Editor: Fix PHP warning in _wp_get_site_editor_redirection_url().
Fixes a PHP Warning for an undefined array key "QUERY_STRING" in `_wp_get_site_editor_redirection_url()` in some PHP configurations.

Depending on the configuration, `$_SERVER['QUERY_STRING']` can either be unset or an empty string when no query string included in the URL. This changes the condition from a falsey check to an `empty()` check.

Reviewed by Mamaduka.
Merges [60134] to the 6.8 branch.

Props akshaydhere, dilipbheda, johnbillion, rainynewt, sabernhardt, sainathpoojary, shovan_jaya, tusharaddweb, wildworks.
Fixes #63224.


Built from https://develop.svn.wordpress.org/branches/6.8@60135


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59471 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-07 22:15:30 +00:00
Peter Wilson
1236aa9aa1 Docs: Fix types for wp_cache_set_last_changed filter.
Corrects the type for the `$time` and `$previous_time` parameters in the filter to indicate the times are expressed as strings. The values are generated from a call to `microtime()` which returns the time as a string in the form `msec sec`.

Reviewed by audrasjb.
Merges [60128] to the 6.8 branch.

Props tillkruess, westonruter.
Fixes #63194.


Built from https://develop.svn.wordpress.org/branches/6.8@60133


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-06 22:29:28 +00:00
desrosj
fde5146524 Security: Don't fail the Argon2-related tests when it's not available on the test infrastructure.
These tests are not critical to the bcrypt functionality, they exist to reaffirm that the underlying use of `password_hash()` and `password_verify()` supports this algorithm. The Argon2 tests therefore shouldn't unnecessarily fail on hosts that don't support it.

Reviewed by desrosj.
Merges [60124] to the 6.8 branch.

Props desrosj, johnbillion.
Fixes #21022.
Built from https://develop.svn.wordpress.org/branches/6.8@60126


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-03 14:48:26 +00:00
John Blackbourn
cc39c68706 Application Passwords: Correct the fallback behaviour for application passwords that don't use a generic hash.
Application passwords that aren't hashed using BLAKE2b should be checked using wp_check_password() rather than assuming they were hashed with phpass. This provides full back compat support for application passwords that were created via an overridden wp_hash_password() function that uses an alternative hashing algorithm.

Reviewed by audrasjb.
Merges [60123] into the 6.8 branch.

Props snicco, debarghyabanerjee, peterwilsoncc, jorbin, johnbillion.

Fixes #63203

Built from https://develop.svn.wordpress.org/branches/6.8@60125


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-03 14:38:27 +00:00
audrasjb
2330906e21 Post WordPress 6.8 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/6.8@60118


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59454 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-01 15:49:26 +00:00
audrasjb
1e76dfd56f WordPress 6.8 RC2.
Built from https://develop.svn.wordpress.org/branches/6.8@60117


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-01 15:16:27 +00:00
Joe McGill
26530a3abd General: Improve unit tests for wp_unique_id_from_values().
This is a follow-up to [60038], which updates the PHPUnit tests to account for different systems producing potentially different hashes due to platform specific floating point precision settings.

Reviewed by audrasjb, desrosj.
Merges [60113] to the 6.8 branch.

Props debarghyabanerjee, joemcgill, peterwilsoncc, siliconforks.
Fixes #63175.

Built from https://develop.svn.wordpress.org/branches/6.8@60116


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-01 13:32:26 +00:00
audrasjb
3e11daaded Editor: Update packages for 6.8 RC 2.
Syncs @wordpress/* packages to the 'wp-6.8' npm tag.

Reviewed by joemcgill.
Merges [60114] to the 6.8 branch.
Props mamaduka.
See #62887.


Built from https://develop.svn.wordpress.org/branches/6.8@60115


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59451 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-04-01 12:44:40 +00:00