Commit Graph

50966 Commits

Author SHA1 Message Date
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
audrasjb
9b6afe8a3f REST API: Properly capitalize "REST" in translation strings.
Reviewed by jorbin.
Merges [60104] to the 6.8 branch.
Props tobifjellner, sabernhardt, abcd95.
Fixes #63193.


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


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59441 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-28 22:44:29 +00:00
audrasjb
19e46a28f9 Administration: Replace missed reference of "Add New" in WP_Taxonomy class.
Follow-up to [59784], [59786], [59791].

Reviewed by joedolson.
Merges [60098] to 6.8 branch.
Props timse201, audrasjb.
Fixes #61219.


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


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-26 22:07:28 +00:00
desrosj
342ecc0d33 Build/Test Tools: 6.8 post-branching updates.
This makes some post-branching changes to the 6.8 branch:
- Pins the most newest supported version of PHP for the local Docker environment
- Switches to using remote references for GitHub Action workflows
- Removes GitHub Action workflow files that will never run from this branch.

See #63164.
Built from https://develop.svn.wordpress.org/branches/6.8@60092


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 16:41:13 +00:00
desrosj
395fdd55c8 Branch 6.8
Built from https://develop.svn.wordpress.org/branches/6.8@60091


git-svn-id: http://core.svn.wordpress.org/branches/6.8@59427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 16:31:17 +00:00
audrasjb
67631199b5 Post WordPress 6.8 RC1 version bump.
Built from https://develop.svn.wordpress.org/trunk@60090


git-svn-id: http://core.svn.wordpress.org/trunk@59426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 16:09:28 +00:00
audrasjb
6f4426b76f WordPress 6.8 RC1.
Built from https://develop.svn.wordpress.org/trunk@60089


git-svn-id: http://core.svn.wordpress.org/trunk@59425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 15:39:29 +00:00
audrasjb
555dc83d90 Permalinks: Revert [59966].
The original commit ignores some of the arguments that can be passed to the function, mainly `base` and `format`. Reverting for now.

Props peterwilsoncc.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 15:18:12 +00:00
ryelle
4fa00adc34 Help/About: Update the About page for 6.8.
Introducing the new content for the 6.8 About page. This release introduces a new header image, but otherwise only minor tweaks to the layout and colors.

See #63025.
Props michelleames, marybaum, jeffpaul, flixos90, krupajnanda, vgnavada, karmatosed, benjamin_zekavica, ryelle, peterwilsoncc, benniledl, audrasjb.


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


git-svn-id: http://core.svn.wordpress.org/trunk@59423 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 15:16:40 +00:00
desrosj
f537eedd4d Build/Test Tools: Apply one missed action update.
Follow up to [60083].

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


git-svn-id: http://core.svn.wordpress.org/trunk@59422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-03-25 14:43:29 +00:00
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