49669 Commits

Author SHA1 Message Date
Ella
d6bff10c4f Editor: add textAlign block support.
See https://github.com/WordPress/gutenberg/pull/59531.
See https://github.com/WordPress/gutenberg/pull/61182.
See https://github.com/WordPress/gutenberg/pull/61717.
See https://github.com/WordPress/wordpress-develop/pull/6590.

Fixes #61256.

Props wildworks, ellatrix.



git-svn-id: https://develop.svn.wordpress.org/trunk@58314 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-04 05:34:12 +00:00
Isabel Brison
f4aaaf2dd9 Editor: fix duotone filter for aligned images on classic themes.
Adds a filter to move the duotone classname to the outer wrapper on aligned images.

Props scruffian, isabel_brison, ajlende.
Fixes #61271.


git-svn-id: https://develop.svn.wordpress.org/trunk@58313 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-04 01:46:03 +00:00
Isabel Brison
c2e280665d Editor: Add __experimentalSkipSerialization support to shadow.
Checks if `__experimentalSkipSerialization` is set and returns early from `wp_apply_shadow_support` if so.

Props colind, madhudollu, aaronrobertshaw, vcanales, isabel_brison, swissspidy, youknowriad.
Fixes #60784.


git-svn-id: https://develop.svn.wordpress.org/trunk@58312 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 23:34:24 +00:00
Jb Audras
87ca676a13 Editor: Style Engine - continue get_classnames loop after adding the default classname.
The `WP_Style_Engine` class has a method `get_classnames` that builds classnames. It loops over an array to add each classname. This changeset adds a `continue` in the loop after adding the default classname.

Syncs changes from https://github.com/WordPress/gutenberg/pull/60153

Props ramonopoly.
Fixes #60847.




git-svn-id: https://develop.svn.wordpress.org/trunk@58311 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 22:02:33 +00:00
Jb Audras
77f38c5926 Site Health: Add a wp_is_writable() for fonts directory.
This changeset adds a check in Site Health to display whether the fonts directory is writable or not.

Follow-up to [58299].

Props ironprogrammer.
Fixes #60719.




git-svn-id: https://develop.svn.wordpress.org/trunk@58310 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 21:55:38 +00:00
Colin Stewart
edad3c57c6 Upgrade/Install: Make $is_debug consistent in WP_Automatic_Updater.
[58139] introduced debugging flags to ensure debugging output would only be shown when both the `WP_DEBUG` and `WP_DEBUG_LOG` constants are defined as true. However, some of the flags incorrectly use `WP_DEBUG_DISPLAY` rather than `WP_DEBUG_LOG`.

This fixes the flags to consistently use `WP_DEBUG` and `WP_DEBUG_LOG` as intended.

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

Props rogermedia, afragen, swissspidy, costdev.
Fixes #58281.

git-svn-id: https://develop.svn.wordpress.org/trunk@58309 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 21:37:37 +00:00
Colin Stewart
3bc1b3ccfb Upgrade/Install: Don't toggle maintenance mode on translation updates.
The Rollback Auto-Update feature introduced additional maintenance mode toggling.

After installing WordPress in a non-English (US) language, translation updates are performed automatically. As there may be a large number of updates for Core and bundled themes, users will be presented with a maintenance notice upon visiting the newly installed website.

To avoid concerning users that the website has failed to install correctly, this excludes translation updates from triggering the additional maintenance mode toggling.

Follow-up to [58128].

Props benniledl, afragen, rajinsharwar, costdev.
Fixes #61260. See #58281.

git-svn-id: https://develop.svn.wordpress.org/trunk@58308 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 21:23:48 +00:00
Colin Stewart
dd38ef8446 Site Health: Add translator comment to explain Directories and Sizes.
This adds a translator comment to the Site Health's debug data to describe what "Directories and Sizes" refers to.

References:
- [https://make.wordpress.org/polyglots/handbook/translating/glotpress-translate-wordpress-org/types-of-messages/#strings-with-description Polyglots handbook: Strings with description]
- [https://codex.wordpress.org/I18n_for_WordPress_Developers#Descriptions I18N Codex: Descriptions]

Props oglekler, afragen, amitraj2203.
Fixes #61316.

git-svn-id: https://develop.svn.wordpress.org/trunk@58307 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 21:05:39 +00:00
Joe Dolson
e3e1bc1334 Menus: Accessibility: Improve screen reader text for edit button.
Change the edit menu item toggle to communicate more context about the item to be edited. Make edit text consistent between Customizer menu editor and admin menu editor.

The menu position is conveyed only visually, using indentation, because there are no organizational semantics in either editor. This change helps provide screen reader users with consistent contextual information about the order, position, and parent of the current item.

Props joedolson, rcreators, afercia, mohonchandra.
Fixes #60673, See #60672.

git-svn-id: https://develop.svn.wordpress.org/trunk@58306 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 20:33:03 +00:00
Adam Silverstein
59e5707235 Media: improve GD support detection for AVIF.
Fix an issue where the GD image library falsely reports supporting the AVIF format, when support is actually missing. Add an additional function check to ensure AVIF support is really available.
Props niktat, adamsilverstein.
Fixes #60910



git-svn-id: https://develop.svn.wordpress.org/trunk@58305 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 20:25:37 +00:00
Dennis Snell
163c3fd110 HTML API: Report real and virtual nodes in the HTML Processor.
HTML is a kind of short-hand for a DOM structure. This means that there are
many cases in HTML where an element's opening tag or closing tag is missing (or
both). This is because many of the parsing rules imply creating elements in the
DOM which may not exist in the text of the HTML.

The HTML Processor, being the higher-level counterpart to the Tag Processor, is
already aware of these nodes, but since it's inception has not paused on them
when scanning through a document. Instead, these are visible when pausing on a
child of such an element, but otherwise not seen.

In this patch the HTML Processor starts exposing those implicitly-created nodes,
including opening tags, and closing tags, that aren't foudn in the text content
of the HTML input document.

Previously, the sequence of matched tokens when scanning with 
`WP_HTML_Processor::next_token()` would depend on how the HTML document was written,
but with this patch, all semantically equal HTML documents will parse and scan in
the same exact manner, presenting an idealized or "perfect" view of the document
the same way as would occur when traversing a DOM in a browser.

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

Props audrasjb, dmsnell, gziolo, jonsurrell.
Fixes #61348.


git-svn-id: https://develop.svn.wordpress.org/trunk@58304 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 19:45:57 +00:00
Ella
06914f5ca6 Editor: resolve patterns server side.
See https://github.com/WordPress/gutenberg/pull/60349.
See https://github.com/WordPress/gutenberg/pull/61757.
See https://github.com/WordPress/wordpress-develop/pull/6673.

Fixes #61228.

Props ellatrix, antonvlasenko.



git-svn-id: https://develop.svn.wordpress.org/trunk@58303 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 18:30:02 +00:00
Jb Audras
94a0485a5e Site Health: Add fonts upload location to Site Health report.
Just like Site Health lists the paths to the plugins/themes/uploads directories, this changeset adds the path to the fonts directory (and its size).

Props swissspidy, andr3ribeiro, krupajnanda, ironprogrammer, iamfarhan09, naeemhaque, imasikur22, tofajjal02, sarkarripon, prottoysarkar, zunaid321, imranhasanraaz, rajinsharwar, nazmul111, audrasjb, peterwilsoncc.
Fixes #60719.




git-svn-id: https://develop.svn.wordpress.org/trunk@58299 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 16:54:31 +00:00
Jb Audras
27151ba0b9 Editor: Simplify the block bindings HTML replacement logic until the HTML API is ready.
This changeset modifies the block bindings HTML replacement logic to use a hardcoded list of selectors based on the block and a regex to substitute the inner content. The previous logic was too complex because the HTML API does not support CSS selectors yet and it does not have an official way to modify the inner HTML. This made it difficult to understand, iterate on it and add new functionalities.
As it will be solved in the future once the HTML API is ready, it is better for now to keep a simple hardcoded version that is easier to understand and iterate on.

Props santosguillamot, gziolo, petitphp.
Fixes #61351.




git-svn-id: https://develop.svn.wordpress.org/trunk@58298 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 16:12:00 +00:00
Sergey Biryukov
fbb5020a92 Docs: Correct description for wp_admin_bar_edit_site_menu().
Follow-up to [58035], [58296].

See #60977.

git-svn-id: https://develop.svn.wordpress.org/trunk@58297 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 15:42:37 +00:00
Jb Audras
da03b6f3ab Toolbar: Restore "Edit site" on block editor admin bar link and replace multisite link.
This changeset restores "Edit site" on the block editor link and replaces the multisite link with "Manage Site".

Follow-up to [58035].

Props annezazu, johnbillion, Joen, audrasjb, johnjamesjacoby, oglekler, nilovelez, tobifjellner, sabernhardt, pavanpatil1, hitendra-chopda.
Fixes #60977.




git-svn-id: https://develop.svn.wordpress.org/trunk@58296 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 15:32:51 +00:00
Joe McGill
2d7ec3bf3b Build/Test Tools: Reduce cross-pollution in Tests_Theme_WpAddGlobalStylesForBlocks.
This ensures cached Theme JSON data is cleared between all test classes that extend `WP_Theme_UnitTestCase` and fixes a few tests that would fail in isolation, even though they full test suite would pass.

Props isabel_brison, thekt12, joemcgill.
Fixes #61337.


git-svn-id: https://develop.svn.wordpress.org/trunk@58295 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 15:03:18 +00:00
Dennis Snell
89bec7acd8 KSES: Allow leading trailing double hyphen in data attributes
Expand allowable set of custom data attribute names to include those containing
leading, trailing, and double `-` characters. Previously, WordPress was
removing data attributes that are used in the Interactivity API. By allowing
these additional custom data attributes, the related Interactivity API
directives will preserve through `kses`.

For example, the Interactivity API frequently relies on custom data attributes
such as `data-wp-on--click="..."`. The change in [43981] would strip these out
of the processed HTML, however.

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

Props cbravobernal, dmsnell, gziolo, jonsurrell.
Follow-up to [43981].
Fixes #61052.


git-svn-id: https://develop.svn.wordpress.org/trunk@58294 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 13:24:25 +00:00
Sergey Biryukov
86bfd17a8e Twenty Twenty-One: Only add the sub-menu toggle button to the primary menu.
Follow-up to [49216].

Props domainsupport, mukesh27, poena, karmatosed, shailu25, SergeyBiryukov.
Fixes #52694.

git-svn-id: https://develop.svn.wordpress.org/trunk@58293 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 12:49:36 +00:00
bernhard-reiter
38c30a9832 Block Hooks: Move Posts controller hooked blocks injection logic.
In a similar vein as [58291], this changeset introduces a new `insert_hooked_blocks_into_rest_response` function and hooks it to the `rest_prepare_wp_navigation` filter.

This is part of an ongoing effort to move Block Hooks related code out of the Navigation block. Specifically, `insert_hooked_blocks_into_rest_response` is based on `block_core_navigation_insert_hooked_blocks_into_rest_response`. Eventually, it will be possible to deprecate the latter.

Follow-up to [58291].

See #60759.

git-svn-id: https://develop.svn.wordpress.org/trunk@58292 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 12:35:47 +00:00
bernhard-reiter
b39f58ec3e Block Hooks: Move ignoredHookedBlocks metadata injection logic.
As of [57790], the Templates endpoint uses the `rest_pre_insert_*` filter to inject the `ignoredHookedBlocks` metadata attribute into anchor blocks, prior to persisting a template or template part to the database. The same principle was implemented for the Navigation endpoint (where additionally, first and last child blocks added at the top level are store in the `wp_navigation` post object's post meta). The required logic was added to the Navigation block's code, i.e. inside the Gutenberg code repository, and then synchronized to Core.

In order to harmonize the code between the two endpoints, this changeset introduces a new `update_ignored_hooked_blocks_postmeta` function, which is based on the Navigation block's `block_core_navigation_update_ignore_hooked_blocks_meta`, alongside a few helper functions, and hooks it to the `rest_pre_insert_wp_navigation` filter hook. (The Navigation block has been prepared in [58275] to add an additional conditional to check for the new `update_ignored_hooked_blocks_postmeta` filter so there won't be any collisions.)

Eventually, this will allow to deprecate `block_core_navigation_update_ignore_hooked_blocks_meta` (and some related functions), and remove the relevant code from the Navigation block. It also paves the way for some other future changes, such as inserting a hooked block as a Template Part block's first or last child (#60854).

Props tomjcafferkey, bernhard-reiter.
Fixes #60759.

git-svn-id: https://develop.svn.wordpress.org/trunk@58291 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 12:03:53 +00:00
Tammie Lister
f466cecadc Bundled Themes: Removes blank CSS lines.
This removes blank CSS lines across multiple themes. Included are Twenty Ten, Twenty Eleven, Twenty Twelve, Twenty Fourteen, Twenty Seventeen, Twenty Nineteen and Twenty Twenty-One.
  
Props ravipatel, ravikumarup, sabernhardt, viralsampat, shailu25, poena, swisspidy, snehapatil02. 
Fixes #59493.


git-svn-id: https://develop.svn.wordpress.org/trunk@58290 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 10:27:35 +00:00
Isabel Brison
8c4be2687c Editor: Add block bindings support for a __default attribute for pattern overrides.
Adds handling for a `__default` block binding attribute for pattern overrides that dynamically adds support for all supported block binding attributes.

Props talldanwp, petitphp, mukesh27, isabel_brison, kevin940726.
Fixes #61333.


git-svn-id: https://develop.svn.wordpress.org/trunk@58289 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-03 07:42:57 +00:00
Jb Audras
8a8499dcc7 Script Loader: Add missing escaping function to Moment.js string localization.
This changeset avoids breaking the inline script added for `Moment.js` localization if for some reason `get_user_locale()` doesn't return a simply string.

Props swissspidy.
Fixes #61341.




git-svn-id: https://develop.svn.wordpress.org/trunk@58288 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 22:33:12 +00:00
Sergey Biryukov
0085fcb4e3 Coding Standards: Use strict comparison in wp-admin/includes/ajax-actions.php.
Follow-up to [6213], [8296], [8720], [9098], [10204], [10476], [10912], [11644], [11749], [12008], [12036], [13489], [17354], [17832], [18663], [18796], [18937], [22843], [28892], [33356].

Props mujuonly, nihar007, aristath, poena, afercia, SergeyBiryukov.
See #58988, #60700.

git-svn-id: https://develop.svn.wordpress.org/trunk@58287 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 22:08:08 +00:00
Jb Audras
0e963984d9 Embeds: Add titles to alternate resource links for oEmbed and REST API.
This changeset makes the following changes:
- Adds the title attribute to `<link rel="alternate">` tags for oEmbed and REST API endpoints
- Updates the oEmbed phpunit tests to reflect the above change
- Adds the title link-param to REST API Link: headers (verified as supported in RFC 8288 here: https://httpwg.org/specs/rfc8288.html#serialisation-defined-attributes)

Props edent, kadamwhite, TimothyBlynJacobs, joedolson, swissspidy, sabernhardt.
Fixes #59006.




git-svn-id: https://develop.svn.wordpress.org/trunk@58286 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 22:00:26 +00:00
Timothy Jacobs
bcbb31d98a Upgrade: Fix the disable_autoupdate flag logic.
In #50824 support was added for a package to include a disable_autoupdate flag to indicate that the plugin/theme should not be auto-updated even if a user had opted-in via the WP-Admin UI. However, the logic implementing the flag was inverted.

This commit repairs the logic. If a package has disable_autoupdate set, then it should not be auto-updated.

Props amisiewicz.
Fixes #52796. 


git-svn-id: https://develop.svn.wordpress.org/trunk@58285 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 21:33:54 +00:00
Jb Audras
85015659cf I18n: Add more context to the overall use of none in translatable strings.
Because `none` doesn't convey the same meaning all the time.

Props tobifjellner, audrasjb, SergeyBiryukov, shailu25.
Fixes #50087.




git-svn-id: https://develop.svn.wordpress.org/trunk@58284 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 21:05:51 +00:00
Timothy Jacobs
8d32224e08 REST API: Add batch support to the Users API.
Developers can now include /wp/v2/users routes when making a batch API request.

Props alexminza, timothyblynjacobs, mukesh27.
Fixes #60895.


git-svn-id: https://develop.svn.wordpress.org/trunk@58283 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 20:01:44 +00:00
Timothy Jacobs
620fd389cb REST API: Add stylesheet and template URI fields to the Themes API.
Props andrewserong, timothyblynjacobs, noisysocks, ramonopoly, peterwilsoncc, Dharm1025.
Fixes #61021.


git-svn-id: https://develop.svn.wordpress.org/trunk@58282 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 19:25:03 +00:00
Dennis Snell
4dc8403f7e HTML API: Add custom text decoder.
Provides a custom decoder for strings coming from HTML attributes and
markup. This custom decoder is necessary because of deficiencies in
PHP's `html_entity_decode()` function:

  - It isn't aware of 720 of the possible named character references in
    HTML, leaving many out that should be translated.

  - It isn't aware of the ambiguous ampersand rule, which allows
    conversion of character references in certain contexts when they
    are missing their closing `;`.

  - It doesn't draw a distinction for the ambiguous ampersand rule
    when decoding attribute values instead of markup values.

  - Use of `html_entity_decode()` requires manually passing non-default
    paramter values to ensure it decodes properly.

This decoder also provides some conveniences, such as making a
single-pass and interruptable decode operation possible. This will
provide a number of opportunities to optimize detection and decoding
of things like value prefixes, and whether a value contains a given
substring.

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

Props dmsnell, gziolo, jonsurrell, jorbin, westonruter, zieladam.
Fixes #61072.


git-svn-id: https://develop.svn.wordpress.org/trunk@58281 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 15:14:35 +00:00
Jb Audras
edafa4aa82 User: Make the user_login field readonly instead of disabled.
On the profile edit screen in ``wp-admin, the username was previously displayed using an input field with the `disabled` attribute. This field was skipped by screen readers, which leads to a loss of information for visually impaired users. This changeset switches it to a `readonly` attribute, which is exactly the purpose of this field.

Props roytanck, audrasjb, rajinsharwar, joedolson.
Fixes #60774.




git-svn-id: https://develop.svn.wordpress.org/trunk@58280 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 09:53:47 +00:00
Jb Audras
019e0e9eef Media: Follow the "proximity of controls" accessibility guidelines in the multi-file uploader.
This changeset updates the design of the Upload Media screen to stack progress bars below the file name. After the upload completes, Action buttons also stack below the file name.

Props afercia, rcreators.
Fixes #60141.




git-svn-id: https://develop.svn.wordpress.org/trunk@58279 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 08:35:30 +00:00
Jb Audras
49a4a725ae Editor: Expose the Site Editor Patterns page for classic themes.
The Site Editor Patterns page was exposed internally for the Classic theme as of WP6.5. As we aim to officially expose the new Patterns page as of WP6.6, this changeset makes the following changes available when a classic themes is activated:

- Link Appearance > Patterns submenu to the Site Editor Patterns page located at `wp-admin/site-editor.php?path=/patterns
- Remove Template Parts submenu

Props wildworks, audrasjb, ironprogrammer, azaozz, youknowriad.
Fixes #61109.




git-svn-id: https://develop.svn.wordpress.org/trunk@58278 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-02 08:15:59 +00:00
Sergey Biryukov
802f924fa2 Coding Standards: Use strict comparison in wp-includes/post-template.php.
Follow-up to [5017], [5018], [6228], [13494], [15582], [23653], [44941].

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

git-svn-id: https://develop.svn.wordpress.org/trunk@58277 602fd350-edb4-49c9-b593-d223f7449a82
2024-06-01 17:35:33 +00:00
Ella
2c818502ea Editor: Update npm packages.
Updates the editor npm packages to latest versions.

Props vcanales.

Fixes #61339.



git-svn-id: https://develop.svn.wordpress.org/trunk@58275 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 18:34:20 +00:00
Jonathan Desrosiers
93bcf8da93 Build/Test Tools: Make the logic around Playground testing reusable.
The workflow responsible for testing the build process is currently responsible for creating a ZIP file of the WordPress build and storing it as an artifact. This can be used for manual testing, but is mainly used for spinning up a Playground instance.

Because of how comments with Playground testing instructions are left pull requests. the pull request number needs to be stored as a workflow artifact as well. This moves the logic responsible for this to the reusable workflow, which allows older branches to make use of Playground testing without additional maintenance burden.

See #59416.

git-svn-id: https://develop.svn.wordpress.org/trunk@58274 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 18:11:30 +00:00
Ella
5aea85cad3 Add missing vendors file after r58271.
See #61324.



git-svn-id: https://develop.svn.wordpress.org/trunk@58273 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 18:08:56 +00:00
Ella
430c8b091b React: Upgrade to the new JSX transform.
See https://github.com/WordPress/gutenberg/pull/61692.
See https://github.com/WordPress/wordpress-develop/pull/6678.

Props youknowriad.

Fixes #61324.



git-svn-id: https://develop.svn.wordpress.org/trunk@58271 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 17:54:41 +00:00
Jonathan Desrosiers
23034419b6 Build/Test Tools: Correct conditional logic in [58269].
See #60127, #61213.

git-svn-id: https://develop.svn.wordpress.org/trunk@58270 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 16:02:57 +00:00
Jonathan Desrosiers
6a697a2337 Build/Test Tools: Add input for PHP version to the performance workflow.
This adds a new input to the reusable performance testing workflow for accepting a PHP version. This allows the workflow to be reused in older branches when the PHP version currently tagged `latest` was not supported.

Props swissspidy, joemcgill.
See #60127, #61213.

git-svn-id: https://develop.svn.wordpress.org/trunk@58269 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 15:56:31 +00:00
Pascal Birchler
02e58999e9 Docs: Improve docblock for block_template_part().
Clarify that `$part` is not limited to just 'header' or 'footer'.

See #60699.

git-svn-id: https://develop.svn.wordpress.org/trunk@58268 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 10:42:31 +00:00
Sergey Biryukov
018f740f48 Docs: Correct @return value for rest_parse_date().
Follow-up to [34928], [36086], [47450].

Props mat-lipe, mukesh27, freewebmentor.
See #60699.

git-svn-id: https://develop.svn.wordpress.org/trunk@58267 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 10:33:16 +00:00
Pascal Birchler
a912ecface Docs: Improve docblock for WP_Theme_JSON::get_stylesheet().
See #60699.

git-svn-id: https://develop.svn.wordpress.org/trunk@58266 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 09:38:22 +00:00
Robert Anderson
9b0bb92500 Fix indentation and whitespace in WP_Theme_JSON and WP_Theme_JSON_Resolver
Props mukesh27.
Follows r58264.
See #61312.


git-svn-id: https://develop.svn.wordpress.org/trunk@58265 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 05:59:14 +00:00
Robert Anderson
f91931a363 Block Themes: Add section styling via extended block style variations
Provide users with the ability to style entire sections of a page without
having to tediously reapply the same sets of styles.

This is done by extending block style variations to apply to nested blocks.

See https://github.com/WordPress/gutenberg/pull/57908.

Fixes #61312.
Props aaronrobertshaw, talldanwp, ramonopoly, isabel_brison, andrewserong.


git-svn-id: https://develop.svn.wordpress.org/trunk@58264 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 05:47:23 +00:00
Robert Anderson
103856d704 Remove extraneous spaces from WP_Theme_JSON_Resolver
Follows r58262.
See #61273.
Props mukesh27.


git-svn-id: https://develop.svn.wordpress.org/trunk@58263 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 03:46:59 +00:00
Robert Anderson
1540cdbf9e Block Themes: Add support for relative URLs in top-level theme.json styles
Allow using relative `file:` URLs in top-level theme.json properties such as
`styles.background`, and modify the REST API to provide clients with the
absolute URLs via a 'https://api.w.org/theme-file' attribute in the `_links`
array.

Props ramonopoly.
Fixes #61273.


git-svn-id: https://develop.svn.wordpress.org/trunk@58262 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-31 01:17:50 +00:00
Sergey Biryukov
b6a3b9c7d1 Coding Standards: Use strict comparison in wp-includes/user.php.
Follow-up to [2895], [3481], [5627], [https://mu.trac.wordpress.org/changeset/1581 mu:1581], [https://mu.trac.wordpress.org/changeset/1612 mu:1612], [12603], [18504], [33771], [41653], [41654], [45708], [51399].

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

git-svn-id: https://develop.svn.wordpress.org/trunk@58261 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-30 21:17:58 +00:00
Tonya Mork
d23b1997aa Plugins: Revert r58081 show an admin notice on successful activation.
With a new direction in the 6.5.4 to restore the Activate button's href (see [58250]), the changesets committed for 6.5.3 (see #60992) are now dead code and will not render the admin notice on successful plugin activation.

This commit is a clean revert of r58081.

Follow-up to [58250].

Props swissspidy, azaozz, costdev, jorbin, hellofromTonya, afragen.
Fixes #61331.
See #60992, #61319.

git-svn-id: https://develop.svn.wordpress.org/trunk@58257 602fd350-edb4-49c9-b593-d223f7449a82
2024-05-30 17:07:59 +00:00