49429 Commits

Author SHA1 Message Date
Pascal Birchler
559e729cc8 Script Loader: Disable injectPolyfill flag in webpack config.
This is a follow-up to [57981] to ensure that `wp-polyfill` is no longer automatically added as a dependency to package scripts. This avoids unnecessarily loading the polyfill script in places such as the block editor.

See #60962.

git-svn-id: https://develop.svn.wordpress.org/trunk@58162 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-16 16:42:57 +00:00
Aaron Jorbin
19faad7744 Plugins: Assign role of button to links that act as buttons.
Clicking on these links initiates an action, so they are more semantically a button rather than a link. Keeping them as an anchor in html allows any existing JS that is targeted to these items to continue to function. The addition of the role helps assistive technology to know that they should treat this as a button.

Props stevejonesdev, sabernhardt, vipulgupta003, rcreators, joedolson.
Fixes #61011.


git-svn-id: https://develop.svn.wordpress.org/trunk@58161 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-16 15:29:57 +00:00
Sergey Biryukov
23a455efdb Tests: Use assertSame() in block_has_support() 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 [56382].

See #60706.

git-svn-id: https://develop.svn.wordpress.org/trunk@58160 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-16 15:13:43 +00:00
Dennis Snell
13d5244c43 Improve legibility of JSON-encoded Interactivity API store data.
The Interactivity API has been rendering client data in a SCRIPT element with the
type `application/json` so that it's not executed as a script, but is available
to one. The data runs through `wp_json_encode()` and is encoded with some flags
to ensure that potentially-dangerous characters are escaped.

However, this can lead to some challenges. Eagerly escaping when not necessary
can make the data difficult to comprehend when reading the output HTML. For example,
all non-ASCII Unicode characters are escaped with their code point equivalent.
This results in `\ud83c\udd70` instead of `🅰`.

In this patch, the flags for JSON encoding are refined to ensure what's necessary
while relaxing other rules (leaving in those Unicode characters if the blog charset
is UTF-8). This makes for Interactivity API data that's quicker as a human reader
to decipher and diagnose.

In summary:

 - This data is JSON encoded and printed in a `<script type="application/json">` tag.

 - If we ensure that `<` is never printed inside the data, it should be impossible to
   break out of the script tag and the browser treats everything as the element's `textContent`.

 - All other escaping becomes unnecessary at that point, including unicode escaping 
   if the page uses the UTF-8 charset (the same encoding as JSON).

See https://github.com/WordPress/wordpress-develop/pull/6433#pullrequestreview-2043218338

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

Fixes: #61170
Follow-up to: [57563].
Props: bjorsch, dmsnell, jonsurrell, sabernhardt, westonruter.


git-svn-id: https://develop.svn.wordpress.org/trunk@58159 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-15 17:40:44 +00:00
Jonathan Desrosiers
3d0a228a34 Build/Test Tools: Remove version from docker-compose.yml.
The `version` property throws a warning when working with the local Docker environment. According to the Docker Compose spec, the property only remains for backward compatibility and should be removed.

Props narenin, mukesh27, swissspidy.
Fixes #61101.

git-svn-id: https://develop.svn.wordpress.org/trunk@58157 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-15 15:33:19 +00:00
Pascal Birchler
c8497783ff Docs: Improve docblock for WP_REST_Template_Revisions_Controller::get_parent().
Props rockfire.
See #60699, #61113.

git-svn-id: https://develop.svn.wordpress.org/trunk@58156 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-15 11:16:24 +00:00
Pascal Birchler
1975c20523 Docs: Fix incorrect docblock for WP_Translation_Controller::translate_plural.
Props szepeviktor.
See #60699.

git-svn-id: https://develop.svn.wordpress.org/trunk@58155 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-15 09:05:52 +00:00
Sergey Biryukov
560d18d65c Tests: Use assertSame() in absint() 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.

Includes correcting a few erroneously duplicated test cases to match their intended purpose.

Follow-up to [57724].

See #60706.

git-svn-id: https://develop.svn.wordpress.org/trunk@58150 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-15 01:07:35 +00:00
Jb Audras
6f7cd059be Administration: Add primary class to the FTP credentials modal submit button.
This helps differentiate the two buttons available in the FTP credentials modal by setting a `primary` class to the submit button.

Props mapk, curdin, audrasjb, shailu25.
Fixes #37647.




git-svn-id: https://develop.svn.wordpress.org/trunk@58149 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-14 22:15:24 +00:00
Dennis Snell
7a031a9306 Quick-fix: Normalize UTF-8 charset slug detection.
In the merge of [58417] the new file was missed. This commit adds the missing required file.

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

Fixes #61182.
Follow-up to [58147].
Props dmsnell, jonsurrell.


git-svn-id: https://develop.svn.wordpress.org/trunk@58148 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-14 18:05:39 +00:00
Dennis Snell
d4967a3619 Normalize UTF-8 charset slug detection.
There are several exist places in Core that attempt to detect if a blog charset
is UTF-8. Each place attempts to perform the same check, except the logic is
spread throughout and there's no single method provided to make this
determination in a consistent way. The `_canonical_charset()` method exists,
but is marked private for use.

In this patch the new `unicode` module provides `is_utf8_charset()` as a method
taking an optional charset slug and indicating if it represents UTF-8,
examining all of the allowable variants of that slug. Associated code is
updated to use this new function, including `_canonical_charset()`. If no slug
is provided, it will look up the current `get_option( 'blog_charset' )`.

Finally, the test functions governing `_canonical_charset()` have been
rewritten as a single test with a data provider instead of as separate test
functions.

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

Fixes #61182.
Props dmsnell, jonsurrell.


git-svn-id: https://develop.svn.wordpress.org/trunk@58147 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-14 18:03:43 +00:00
Joe Dolson
c3a4e8bbe5 Administration: A11y: Replace placeholders with visible labels.
Add visible labels to inputs that are using placeholder attributes as a substitute for visible labeling.

Labels added or made visible on the customizer theme search, customizer widget search, customizer menu item search, customizer new page UI, the search plugins screens, the media search screens, and the classic editor link inserter.

Props afercia, joedolson, rcreators, sabernhardt.
See #40331.

git-svn-id: https://develop.svn.wordpress.org/trunk@58146 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-14 16:47:03 +00:00
Sergey Biryukov
5dff70b918 Users: Reuse an existing string in the confirmation for unsaved changes in user profile.
Follow-up to [58137].

Fixes #40493.

git-svn-id: https://develop.svn.wordpress.org/trunk@58145 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-14 16:12:45 +00:00
Jonathan Desrosiers
6ee6fcb7f3 Build/Test Tools: Don’t upload HTML reports to Codecov.
When generating a human readable code coverage report in HTML format, the Codecov action used to fail silently. An error is now being returned, resulting in a workflow failure.

This adds a skip condition to the appropriate steps so the coverage report is only uploaded when a `clover` format is generated.

See #60733.

git-svn-id: https://develop.svn.wordpress.org/trunk@58144 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-14 15:18:37 +00:00
Weston Ruter
b4889e474c Embeds: Enable lazy-loading of post embeds and fix keyboard a11y for hidden iframes.
Chrome unreliably loads a lazy-loaded iframe when it is hidden using `clip: rect(1px, 1px, 1px, 1px)`. Instead of using `clip`, a lazy-loaded iframe can also be hidden with `visibility:hidden` which results in it loading not only in Chrome but all other browsers. With this change applied, the hard-coded check to prevent lazy-loading post embeds is now removed. An added benefit to using `visibility:hidden` is that the entire iframe in this case is not interactable, meaning that users navigating the document with the keyboard will not unexpectedly encounter tab stops inside of the hidden iframe, as can happen now with `clip` when the JS fails to reveal the loaded iframe. Note also that the `clip` property is deprecated.

Lastly, when such a post embed iframe is rendered in an RSS feed, the `style` attribute is now removed using the HTML Tag Processor as opposed to using string replacement.

Fixes #58773.
Props westonruter, joemcgill, swissspidy, joedolson, adamsilverstein.


git-svn-id: https://develop.svn.wordpress.org/trunk@58143 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-13 22:37:38 +00:00
Tammie Lister
841d0f23ba Twenty Twenty-One: Fixes primary menu disappearing.
The primary menu was disappearing at 481px. This adjusts to resolve this. It was shown when adjust the browser window not in responsive design mode.

Props stephenbrook, audrasjb, mukesh27, sabernhardt, poena, kristenfisher427, siliconforks, jwgoedert, joedolson.
Fixes #52354.


git-svn-id: https://develop.svn.wordpress.org/trunk@58142 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-13 16:41:05 +00:00
Aaron Jorbin
1f09517abf Tests: Add comment to explain when e2e test for gutenberg is skipped
Follow-up to [58046].

See #60971.


git-svn-id: https://develop.svn.wordpress.org/trunk@58141 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-13 16:38:17 +00:00
Sergey Biryukov
28cb3b8cc2 Docs: Make Settings API documentation link clickable in wp-admin/options.php.
The link is a part of the deprecation notice displayed when saving an unregistered setting.

Follow-up to [13646], [13785], [14070], [32116], [34315], [45674].

Props timse201, sabernhardt, amitraj2203, khokansardar, SergeyBiryukov.
Fixes #61199.

git-svn-id: https://develop.svn.wordpress.org/trunk@58140 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-13 16:24:14 +00:00
John Blackbourn
5a95e3161a Bootstrap/Load: Place the debugging output for automatic plugin and theme updates behind a debugging flag.
This change means this debugging output will only be shown when both the `WP_DEBUG` and `WP_DEBUG_LOG` constants are defined as true.

Props costdev, afragen, swissspidy

Fixes #58281


git-svn-id: https://develop.svn.wordpress.org/trunk@58139 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-13 15:22:07 +00:00
John Blackbourn
c43e8cf873 Bootstrap/Load: Update the domain parsing when initialising the cookie domain on Multisite.
This ensures the cookie domain is set to the bare domain without a port number, if one is present.

Props spacedmonkey

Fixes #21077


git-svn-id: https://develop.svn.wordpress.org/trunk@58138 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-13 13:32:19 +00:00
Joe Dolson
ff2c933afa Users: Add JS confirmation if user profile has unsaved changes.
Add a confirmation dialog when users navigate away from the user profile screen if they have unsaved changes to prevent data loss.

Props ashokrane, karlijnbk, diedeexterkate, jwgoedert, joedolson, swissspidy, afercia.
Fixes #40493.

git-svn-id: https://develop.svn.wordpress.org/trunk@58137 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-12 18:43:19 +00:00
Sergey Biryukov
5584f649ae Tests: Move add_settings_section() tests to a more appropriate place.
Follow-up to [54247].

See #60705.

git-svn-id: https://develop.svn.wordpress.org/trunk@58136 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-12 15:54:33 +00:00
karmatosed
9a90425710 Twenty Seventeen: Resolves Header Image Quality Issue
The heading image had quality issues on iOS Safari in portrait and landscape modes. This resolves it through adding 200cv for smaller screens so less than full size.

Props poena, richardevs, laurelfulford, davidakennedy, joemcgill, SergeyBiryukov, ianbelanger, sabernhardt, shailu25, robertghetau.
Fixes #39253.


git-svn-id: https://develop.svn.wordpress.org/trunk@58135 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-12 09:27:02 +00:00
Peter Wilson
ea8bc973b4 Options, Meta APIs: Prime transient options prior to use.
Reduce the number of queries getting and setting transients on sites without a persistent cache. 

Transients are stored in two options: one each for the transient value and timeout. Priming the cache reduces the database queries for getting a transient from two to one.

Props peterwilsoncc, swissspidy.
Fixes #61193.



git-svn-id: https://develop.svn.wordpress.org/trunk@58134 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-11 23:51:55 +00:00
Joe Dolson
5e2cba2412 Toolbar: Accessibility: Remove adminbar skiplink focus fix.
Based on the current browser support policies and expectations, this is no longer needed. There are almost no browsers in use where this is still in use. The same fix was removed from core themes in #54421.

Props joedolson, sabernhardt, shailu25.
Fixes #60479.

git-svn-id: https://develop.svn.wordpress.org/trunk@58133 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-11 18:26:06 +00:00
Sergey Biryukov
2ab3606054 Docs: Update a HelpHub link on Edit Site screen to avoid unnecessary redirection.
Follow-up to [17045], [20713], [41065], [45674], [55412], [57854], [58131].

Props shailu25.
See #60732, #60699.

git-svn-id: https://develop.svn.wordpress.org/trunk@58132 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-11 14:45:08 +00:00
Sergey Biryukov
725f618690 Docs: Use more specific URLs for a few Network Admin HelpHub links.
This better reflects the originally intended destination of these links.

Follow-up to [57854].

See #60732, #60699.

git-svn-id: https://develop.svn.wordpress.org/trunk@58131 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-11 14:36:27 +00:00
Pascal Birchler
4304be07f3 REST API: Ensure attachments are uploaded to the post's year/month folder.
If organizing uploads into month- and year-based folders, uploading an attachment to an existing post should store the file in `wp-content/uploads/<year>/<month>` based on the post's publish date. This is in line with the behavior in classic editor / the media modal.

Props swissspidy, adamsilverstein, timothyblynjacobs, skithund, sergeybiryukov, patricia70.
Fixes #61189.

git-svn-id: https://develop.svn.wordpress.org/trunk@58130 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-10 18:57:53 +00:00
Sergey Biryukov
3f3a4f96dd Posts, Post Types: Use a consistent plural form of “status” in variable names.
Follow-up to [5575], [6796], [6993], [7638], [12162], [12719], [15578], [16652], [31046], [34515], [49472].

Props Presskopp, sabernhardt, manfcarlo, SergeyBiryukov.
Fixes #58134.

git-svn-id: https://develop.svn.wordpress.org/trunk@58129 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-10 18:07:17 +00:00
John Blackbourn
8d5e55ad1b Upgrade/Install: Automatically roll back to the previous version when an automatic plugin update results in a fatal error on the front end of the site.
This builds on the temporary backup system introduced in 6.3 to allow automatic updates to benefit from fatal error protection. A loopback request is performed to the home page of the site and the plugin is rolled back to its backed up version if a fatal error is observed.

For debugging and observability during beta, this change includes several calls to `error_log()` during the upgrade and rollback stages. These calls can be removed or placed behind a flag once we're ready for RC1.

Props costdev, johnbillion, mukesh27, afragen, audrasjb, justlevine, kirasong, peterwilsoncc

Fixes #58281


git-svn-id: https://develop.svn.wordpress.org/trunk@58128 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-10 11:46:51 +00:00
Greg Ziółkowski
2492900a36 Interactivity API: Cannot be used from wp-admin
Interactivity API has hooks that run on the frontend, but not in wp-admin. This means that interactivity data was not printed to the HTML and the interactivity Script Modules were not registered.

Fixes #61087.
Props jonsurrell, cbravobernal, gziolo.



git-svn-id: https://develop.svn.wordpress.org/trunk@58127 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-10 09:11:44 +00:00
Greg Ziółkowski
f14499b801 Script Modules: Hooks are not registered in wp-admin
Script Modules cannot be used in wp-admin. The necessary hooks are registered on wp_head or wp_footer, but should also be registered for the admin variants so that modules can be used from wp-admin.

Fixes #61086.
Props jonsurrell, cbravobernal, gziolo.



git-svn-id: https://develop.svn.wordpress.org/trunk@58126 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-10 09:07:33 +00:00
John Blackbourn
12dc16563b Bootstrap/Load: Take the port number into consideration when determining whether a subdomain installation of Multisite is allowed.
This results in the prevention of an installation running on a port on localhost (for example `localhost:8889`) being converted to a subdomain Multisite installation, whereas previously it was incorrectly allowed.

Props spacedmonkey 

See #21077


git-svn-id: https://develop.svn.wordpress.org/trunk@58125 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-09 23:07:51 +00:00
Sergey Biryukov
9c392836b4 Coding Standards: Use strict comparison in wp-includes/nav-menu-template.php.
Includes correcting a conditional in `_wp_menu_item_classes_by_context()` where `$parent_item->object`, which contains a string like `page`, was erroneously compared to the queried object's ID. The correct property to compare is `$parent_item->object_id`.

Follow-up to [14876], [14923], [14942], [15302], [16731], [16742], [22302], [47550], [47557], [47808].

Props aristath, poena, afercia, SergeyBiryukov.
See #60700.

git-svn-id: https://develop.svn.wordpress.org/trunk@58124 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-09 15:14:46 +00:00
Isabel Brison
08b4dd3b8b Editor: move global CSS custom properties to :root selector.
Changes the rules outputting global styles CSS custom properties to use `:root` instead of `body`, and cleans up some unused variables.

Props ramonopoly, isabel_brison.
Fixes #61135.


git-svn-id: https://develop.svn.wordpress.org/trunk@58123 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-09 04:07:53 +00:00
Jonny Harris
3a6cca9ff7 Query: Improve cache key generation.
Query caching in `WP_Query` was added in [53941]. When this functionality was added to the `WP_Query` class, a number of edge cases were missed that would result in redundant duplicate queries. It was possible to pass parameters to `WP_Query` that would be different but would result in the same database query being generated. As the cache key is generated from a mixture of query arguments and the SQL query, this resulted in different cache keys for the same database query, resulting in unnecessary duplicate queries. In this change, the logic in the `generate_cache_key` method has been improved to ensure reuse of existing caches. The following edge cases have been considered:

- Passing `post_type` as an empty string.
- Passing `post_type` as the string `any`.
- Passing `post_type` as array vs. string.
- Passing `post_type` as an array in a different order.
- Not passing `orderby`.
- Passing `post_status` as an array vs. string.
- Passing `post_status` as an array in a different order.

This change also fixes an issue where the old SQL query would not match, as the queries had different whitespaces. 

Props spacedmonkey, joemcgill, pbearne, peterwilsoncc, rajinsharwar, mukesh27, thekt12, huzaifaalmesbah, rodionov201.
Fixes #59442.

git-svn-id: https://develop.svn.wordpress.org/trunk@58122 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-08 22:49:46 +00:00
Aaron Jorbin
5b9cdefd15 Readme: Avoid a redirect by using www.php.net
Props josevarghese.
Fixes #61174.


git-svn-id: https://develop.svn.wordpress.org/trunk@58121 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-08 22:04:11 +00:00
Jonathan Desrosiers
2747683090 Build/Test Tools: Remove check-latest input for setup-node.
The `check-latest` setting is used to ensure the latest version of Node.js is always installed in GitHub Action workflows.

This input was added and turned on in [57212] when the minimum required version of Node.js was bumped to `20.10.0`. Because GitHub Action runner image updates are deployed on a rolling basis over the course of several days, a version of Node.js that met this new requirement was not always present (especially on Windows runners). Using this input was a temporary fix to ensure stability for Core’s test workflows. 

The `check-latest` input does have some side effects. Two examples are:
- An additional request is performed to check the latest version every time `setup-node` is used with this option enabled. More requests are made to download and install a newer version of Node.js when one is available.
- When new versions of Node.js are released, the Core workflows immediately switch to the new version, which could potentially have undiscovered bugs or regressions.

The latter has surfaced today due to a regression in Node.js 20.13.0 on Windows (see https://github.com/nodejs/node/issues/52884).

A bit of time has passed and a version >=20.10.0 is now reliably available on all GitHub Action runners. Running the very latest release Node.js is also not important for Core’s testing setup, so `check-version` can safely be removed to address both side effects detailed above. 

Props johnbillion.
Fixes #60129.

git-svn-id: https://develop.svn.wordpress.org/trunk@58120 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-08 19:16:21 +00:00
Sergey Biryukov
45a3d53f66 Coding Standards: Use strict comparison in wp-includes/nav-menu.php.
Follow-up to [14248], [14285], [14878], [15008], [22235], [23897], [23941], [27150].

Props dhruvang21, aristath, poena, afercia, SergeyBiryukov.
Fixes #61160. See #60700.

git-svn-id: https://develop.svn.wordpress.org/trunk@58119 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-08 18:35:10 +00:00
John James Jacoby
15e4edbc62 Multisite: Add missing "contribute.php" file to User Dashboard.
This changeset adds a `wp-admin/user/contribute.php` file to allow the "Get Involved" link to work on User Admin.

This changeset prevents an unintended 404 that occurs when a logged-in user clicks the "Get Involved" link (located in the menu-bar) from inside of the multisite-specific User Dashboard.

Related: r56220, r56309, #23348.

Props ignatiusjeroe, audrasjb, tobiasbg.

Fixes #61122.

git-svn-id: https://develop.svn.wordpress.org/trunk@58118 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-08 17:02:06 +00:00
Sergey Biryukov
473e2554db Site Health: Correct the anchor for “Learn more about page cache” link.
Follow-up to [54043], [55412], [57793].

Props comecaramelos.
Fixes #61159.

git-svn-id: https://develop.svn.wordpress.org/trunk@58113 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-07 10:15:19 +00:00
Sergey Biryukov
3adbaf8ec0 Editor: Check that attrs is an array in WP_Block_Supports::apply_block_supports().
This prevents a fatal error in `wp_apply_custom_classname_support()`, which expects an array data type for block attributes, and makes sure the block editor can still load if there is a mistake in the attributes of a block.

Follow-up to [54498].

Props caercam.
Fixes #61151.

git-svn-id: https://develop.svn.wordpress.org/trunk@58112 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-06 21:23:52 +00:00
Tammie Lister
982e9b774d Bundled Themes: Add descriptions to patterns.
This adds descriptions to multiple bundled themes. All patterns without the "Inserter" parameter set to "false" or "no", should use the description parameter (These patterns are hidden in the block inserter and do not use the descriptions).

Props poena, StringPiggy, oglekler, audrasjb, huzaifaalmesbah, swisspidy.
Fixes #59688.


git-svn-id: https://develop.svn.wordpress.org/trunk@58111 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-06 20:30:19 +00:00
Joe McGill
fff4eaf55e Docs: Update docblock for wp_get_attachment_image() attributes.
This updates the docblock attributes for `wp_get_attachment_image()` to account for attribute values that are being determined by `wp_get_loading_optimization_attributes()`. Updates docs for `$attr['loading']` and adds docs for `$attr['fetchpriority']`.

Props joemcgill, dmsnell.
Fixes #59550.


git-svn-id: https://develop.svn.wordpress.org/trunk@58110 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-06 20:21:29 +00:00
John Blackbourn
06627e8acd Cron API: Add tests for associative and indexed array arguments when rescheduling a cron event.
Props johnbillion, peterwilsoncc

See #57271


git-svn-id: https://develop.svn.wordpress.org/trunk@58109 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-06 18:47:42 +00:00
John Blackbourn
f08a369445 Build/Test Tools: Standardise the assertions for remote HTTP request tests.
This ensures that as much information as possible is shown when an HTTP request fails during an external HTTP test.

Fixes #61148


git-svn-id: https://develop.svn.wordpress.org/trunk@58108 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-06 18:39:15 +00:00
John Blackbourn
51b5552050 Build/Test Tools: Exclude PHP translation files from phpcs linting.
Translation files in this directory are automatically generated and are not subject to any linting considerations.

See #59647


git-svn-id: https://develop.svn.wordpress.org/trunk@58107 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-06 18:35:46 +00:00
Tammie Lister
186e04fcb6 Twenty Twenty-Four: Resolve accessibility issues in FAQ pattern.
The FAQ pattern uses multiple details blocks in a row. This ends up with it behaving as an accordion and opens to issues.  In ticket discussion this was decided to be removed to set a good example of how to build.

Props poena, alh0319, abditsori, richtabor, joedolson, huzaifaalmesbah, krupajnanda, luminuu, shailu25, swisspidy.
Fixes #60335.


git-svn-id: https://develop.svn.wordpress.org/trunk@58106 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-06 16:38:57 +00:00
Joe McGill
d1d0f68bb9 Options: Update default autoload values used in core.
This updates the values used for the `$autoload` parameter in various functions to replace 'yes' and 'no' with 'on' and 'off', respectively.

Follow-up to [57920].

Props pbearne, mukesh27, joemcgill.
Fixes #61045. See #42441.


git-svn-id: https://develop.svn.wordpress.org/trunk@58105 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-06 16:33:27 +00:00
Tammie Lister
be9f8a5f1e Twenty Twelve: Pullquote block alignment correction for margins.
The pullquote wasn't aligning correctly centrally. This fixes that issue by adding that in.

Props umesh84, poena, nithins53, adeltahri, bgoewert, sabernhardt.
Fixes #57472.


git-svn-id: https://develop.svn.wordpress.org/trunk@58104 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-06 15:39:42 +00:00