Commit Graph

17839 Commits

Author SHA1 Message Date
desrosj
f093f1bbae External Libraries: Correct the hoverIntent version used when registering.
Follow up to [50521].

Props david.binda.
Merges [51467] to the 5.8 branch.
Fixes #53715.
Built from https://develop.svn.wordpress.org/branches/5.8@51503


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 12:52:58 +00:00
desrosj
8de7e19046 Build/Test Tools: Remove the check for changes to version-controlled files in the Test Old Branch workflow.
This workflow does not perform a `git checkout` and is only used to dispatch workflows for old branches, so this check is not needed here.

Merges [51498] to the 5.8 branch.
Fixes #53799.
Built from https://develop.svn.wordpress.org/branches/5.8@51502


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-28 12:51:00 +00:00
Peter Wilson
ae830d4e4b Bundled Themes: Version Bump 2010, 2011 and 2012.
Version bump three bundled themes to avoid file not found and fatal errors introduced for child themes during the 5.8 release cycle.

* Twenty Ten: Version 3.5 (fatal error & 404)
* Twenty Eleven: Version 3.9 (404)
* Twenty Twelve: Version 3.5 (404)

These updates will be released mid 5.8.1 cycle due to the severity of the issues.

Follow up to [51482,51483].

Props dd32, peterwilsoncc.
Merges [51486] to the 5.8 branch.
Fixes #53777.


Built from https://develop.svn.wordpress.org/branches/5.8@51489


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-26 03:26:57 +00:00
Peter Wilson
22bbec22de Bundled Themes: Use correct path for loading images in block patterns.
By using `get_template_directory_uri()` instead of `get_stylesheet_directory_uri()`, we make sure to include the images from the parent theme.

This avoids displaying missing images in block patterns when using a child theme of Twenty Ten, Twenty Eleven, or Twenty Twelve.

Follow-up to [51033], [51103], [51106].

Props audrasjb, SergeyBiryukov.
Merges [51483] to the 5.8 branch.
Fixes #53769.


Built from https://develop.svn.wordpress.org/branches/5.8@51488


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-26 03:24:57 +00:00
Peter Wilson
538f14245c Twenty Ten: Use correct path for loading block patterns.
By using `get_template_directory()` instead of `get_stylesheet_directory()`, we make sure to include the `block-patterns.php` file from the parent theme.

This avoids a PHP fatal error when using a child theme of Twenty Ten.

Follow-up to [51106].

Props ryelle, sabernhardt, loranrendel, SergeyBiryukov.
Merges [51482] to the 5.8 branch.
Fixes #53752.

Built from https://develop.svn.wordpress.org/branches/5.8@51487


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51098 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-26 03:20:59 +00:00
desrosj
3658f5d190 Post WordPress 5.8 version bump.
The 5.8 branch is now 5.8.1-alpha.
Built from https://develop.svn.wordpress.org/branches/5.8@51466


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-20 17:48:58 +00:00
desrosj
add7651d0b WordPress 5.8.
Built from https://develop.svn.wordpress.org/branches/5.8@51464


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-20 16:07:00 +00:00
Peter Wilson
ce8a07686a Upgrade/Install: Add additional files to $_old_files for 5.8.
Follow up to [51134].

Props desrosj.
Merges [51459] to the 5.8 branch.
Fixes #53367.


Built from https://develop.svn.wordpress.org/branches/5.8@51460


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-19 01:27:57 +00:00
Peter Wilson
6b59938770 Build/Test Tools: Update the caniuse browser data and regenerate CSS.
This includes three minor updates to generated CSS files:

- A single `-webkit-` prefix is removed for `min-width`, which was required for Safari <= 10.1 (0.06% total global usage). WordPress only supports the last two versions.
- 2 instances where the `-o-` prefix are added for `tab-size`. This appears to be for Opera Mobile, which has creeped back over the 1% global usage.

Props peterwilsoncc, jorbin, desrosj.
Merges [51456] to the 5.8 branch.
Fixes #53686.

Built from https://develop.svn.wordpress.org/branches/5.8@51458


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-19 00:56:57 +00:00
desrosj
ee3c9c41bc Bundled Themes: Bump bundled theme versions for WordPress 5.8.
This bumps the version for all bundle themes in preparation for release with WordPress 5.8. The new versions are as follows:

- Twenty Twenty-One: 1.4
- Twenty Twenty: 1.8
- Twenty Nineteen: 2.1
- Twenty Seventeen: 2.8
- Twenty Sixteen: 2.5
- Twenty Fifteen: 3.0
- Twenty Fourteen: 3.2
- Twenty Thirteen: 3.4
- Twenty Twelve: 3.4
- Twenty Eleven: 3.8
- Twenty Ten: 3.4

Props mukesh27, kapilpaul, peterwilsoncc.
Merges [51455] to the 5.8 branch.
Fixes #53277.
Built from https://develop.svn.wordpress.org/branches/5.8@51457


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-19 00:45:00 +00:00
desrosj
cfde1a37e5 Post WordPress 5.8 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51447


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 22:03:58 +00:00
desrosj
37be93859d WordPress 5.8 RC4.
Built from https://develop.svn.wordpress.org/branches/5.8@51446


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 21:35:57 +00:00
desrosj
a01a99951e Block Editor: Backport fixes targeted for WordPress 5.8 RC4.
This includes:

- Suggestion List: Check if a node exists to scroll into view.
- Autocomplete: reset state for empty text.
- Adds auxiliary class names for editor styles in the widgets editor.
- Extract snackbars into a separate component.
- Rich text: run input rules after composition end.
- iframe: load inline styles.
- Multi select: select all: restore ref callback.
- Writing flow: allow select all from empty selection.
- Post Excerpt: Fix excerpt_more filter conflict and remove wordCount attribute.
- Add the percent unit to the default units in Core. 

Props desrosj, youknowriad.
Merges [51443] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51445


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 21:14:20 +00:00
desrosj
3ffa646c8c Media: Document edge cases with the new image_editor_output_format filter.
More testing has revealed that the `image_editor_output_format` filter has some interesting edge cases that developers should be aware of when electing to use this filter (see #53667 and #53668).

Because this is a new filter that was intended to be used for experimenting with different ways to handle generating image sizes and has not yet been adopted in the wild, expanding the inline documentation is an acceptable temporary solution while these edge cases are explored further and addressed.

Props mikeschroder, antpb, desrosj, adamsilverstein, ianmjones.
Merges [51442] to the 5.8 branch.
See #53667, #53668, #35725.
Built from https://develop.svn.wordpress.org/branches/5.8@51444


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 21:10:59 +00:00
desrosj
41fca9e8ba Media: Fix JS error in Media Library when infinite scroll enabled.
Wrap call to this.updateLoadMoreView() is wrapped in a check that infinite scroll is disabled to prevent JS errors.

Props wildworks, joedolson.
Merges [51440] to the 5.8 branch.
Fixes #53672.
Built from https://develop.svn.wordpress.org/branches/5.8@51441


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 17:29:57 +00:00
desrosj
94a93212ba Widgets: Prevent widgets unintentionally being moved to the inactive sidebar.
This fixes a bug where widgets are unintentionally moved to the `wp_inactive_widgets` sidebar when batch updates occur through the REST API.

When batch requests are processed, only `$_wp_sidebars_widgets` is updated by previous calls to `WP_REST_Widgets_Controller::create_item()`. `$sidebars_widgets` is not aware of the new widget’s intended location, and `retrieve_widgets()` mistakenly flags the widget as inactive.

Calling `wp_get_sidebars_widgets()` before `retrieve_widgets()` ensures both global variables match and is intended as a temporary fix until the root cause of the problem can be fixed.

Props zieladam, htmgarcia, timothyblynjacobs.
Merges [51432] to the 5.8 branch.
Fixes #53657.
Built from https://develop.svn.wordpress.org/branches/5.8@51439


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51050 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 15:42:58 +00:00
desrosj
d06c747962 Media: When resizing WebP images set the compression to "lossy" by default. Fixes a bug where the compression was set to "lossless" when the uploaded WebP images have extended file format (VP8X).
Props adamsilverstein, mikeschroder, mmxxi, linux4me2, azaozz.
Merges [51435] to the 5.8 branch.
Fixes #53653.
Built from https://develop.svn.wordpress.org/branches/5.8@51437


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-15 13:01:58 +00:00
desrosj
cb85548d7c Privacy: Ensure the copy button actually copies the suggested privacy policy text.
Follow up to [50609].

Props walbo, SergeyBiryukov.
Merges [51431] to the 5.8 branch.
Fixes #53652. See #52891.
Built from https://develop.svn.wordpress.org/branches/5.8@51433


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 17:14:58 +00:00
desrosj
7cb25d196b Post WordPress 5.8 RC3 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51429


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 01:02:56 +00:00
desrosj
73dfd406da WordPress 5.8 RC3.
Built from https://develop.svn.wordpress.org/branches/5.8@51428


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51039 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 00:40:58 +00:00
desrosj
82b9b1a3a5 Editor: Second round of package updates ahead of RC3.
Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj.
Merges [51426] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51427


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-14 00:03:19 +00:00
desrosj
eba698dba1 Widgets: Validate HTML before saving block widgets.
Props talldanwp, noisysocks, kevin940726, peterwilsoncc.
Merges [51414] and [51423] to the 5.8 branch.
Built from https://develop.svn.wordpress.org/branches/5.8@51424


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 18:04:58 +00:00
desrosj
5658a2d03c Block Editor: Include the fixes targeted for WordPress 5.8 RC3.
This includes the following fixes:
 - Safari: see if compositing layer size is more reasonable when position fixed divs are not inserted into content.
 - Site Logo Block: update Site Logo block UI and option syncing.
 - Fix moving inner blocks in the Widgets Customizer.
 - Allow themes to provide empty values for color.duotone and spacing.units
 - Update getTermsInfo() to workaround parsing issue for translatable strings.
 - Specify what settings can be part of settings.layout.
 - Update conditions to hide duotone panel.
 - Prevent entering invalid values in the Query Loop block config.
 - Prevent color panel from showing as empty.
 - Avoid calling gutenberg_ functions within code shipped through WordPress Core.

Props desrosj, youknowriad.
Merges [51421] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51422


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 17:15:20 +00:00
ryelle
cfba8e5850 Help/About: Update the About section for 5.8.
Update the image links to use the CDN. Use regular text color for headings. Fix two string issues. Remove unnecessary wp-components script & style.
Use a larger image for theme.json on retina screens, and update the spacing of sections on the page.

Props nao, audrasjb, karmatosed, desrosj, javiarce, milana_cap.
Merges [51413] and [51418] to the 5.8 branch.
See #52775.


Built from https://develop.svn.wordpress.org/branches/5.8@51420


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51031 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 16:18:59 +00:00
desrosj
52977d997c Widgets: Replace wp.editor references in the legacy text widget.
This changes the references to `wp.editor` in the text widget’s JavaScript to `wp.oldEditor`, which is the new location for the old `editor` script that was previously available at `window.wp.editor`. 

Follow up to [51387-51388,51390].

Props spacedmonkey, zieladam, SergeyBiryukov.
Merges [51409] to the 5.8 branch.
Fixes #53437.
Built from https://develop.svn.wordpress.org/branches/5.8@51416


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 13:46:04 +00:00
desrosj
7523e1376b Widgets: Use wp_sidebar_description() to retrieve a sidebar’s description.
This switches `WP_REST_Sidebars_Controller` to use `wp_sidebar_description()` for retrieving the description of a given sidebar instead of referencing the value in the `$wp_registered_sidebars` global variable directly.

`wp_sidebar_description()` uses `wp_kses()` to only allow the default list of `$allowed_tags` to be present in a sidebar’s description.

Props timothyblynjacobs, desrosj, SergeyBiryukov.
Merges [51408] to the 5.8 branch.
Fixes #53646.
Built from https://develop.svn.wordpress.org/branches/5.8@51412


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51023 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 00:10:58 +00:00
desrosj
acd6e52e4f Docs: Various documentation fixes following [51129].
- Typo corrections in filter descriptions.
- DocBlocks are now now wrapped to the next line after 80 characters, and not extending beyond 120 total characters wide.
- Remove unnecessary repeated references to the suggested replacement hooks.
- Adjustments to the indentation for consistency with other emails in Core, allowing the `phpcs:ignore` comment to be removed. 

Props SergeyBiryukov.
Merges [51410] to the 5.8 branch.
Fixes #44314.
Built from https://develop.svn.wordpress.org/branches/5.8@51411


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-13 00:07:59 +00:00
desrosj
7e8542281a TinyMCE: ensure initialization runs in all cases on 'interactive' and 'complete' readyState.
Fixes a rare bug when the init code is inserted in the DOM after the page has finished loading.

Props Collizo4sky, azaozz.
Merges [51402] to the 5.8 branch.
Fixes #53632.
Built from https://develop.svn.wordpress.org/branches/5.8@51407


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-12 13:29:00 +00:00
desrosj
ed40b04676 Bundled Themes: Correct comment formatting in inc/block-patterns.php.
Follow-up to [51045], [51103].

Props kapilpaul, SergeyBiryukov.
See #53359, #52627.
Built from https://develop.svn.wordpress.org/branches/5.8@51406


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-12 13:27:01 +00:00
desrosj
7a157307d8 Docs: Some documentation improvements for wp_check_widget_editor_deps():
- Add missing short description for the function.
- Correct function names in `_doing_it_wrong()` calls.
- Document the usage of `$wp_scripts` and `$wp_styles` globals.
- Update syntax for multi-line comment per the documentation standards. 

Follow-up to [51387], [51388].

Props SergeyBiryukov.
Merges [51390] to the 5.8 branch.
See #53437, #53569.
Built from https://develop.svn.wordpress.org/branches/5.8@51394


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 17:59:58 +00:00
desrosj
69868c9648 Widgets: Warn when wp-editor script or wp-edit-post style is enqueued in widgets editor
It is common that plugins erroneously have `wp-editor` or `wp-edit-post` as a
dependency in a script that is loaded in the new widgets editor. This is a smell
since both `@wordpress/editor` and `@wordpress/edit-post` assume the existence
of a global "post" object which the widgets editor does not have.

[51387] fixes the user-facing errors typically caused by this mistake, but we
can go a step further and warn developers about this by calling
`_doing_it_wrong()` when we detect that the `wp-editor` script or `wp-edit-post`
style is enqueued alongside `wp-edit-widgets` or `wp-customize-widgets`.

Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu, dlh, noisysocks.
Merges [51388] to the 5.8 branch.
Fixes #53569. See #53437.
Built from https://develop.svn.wordpress.org/branches/5.8@51393


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 17:57:59 +00:00
desrosj
5962e1f19f Editor: Merge conflicting wp.editor objects into single, non-conflicting object
The `wp-editor` script (`@wordpress/editor` npm package) is exposed as
`window.wp.editor` in WP Admin. This causes problems, though, as many older
scripts expect to see the older `editor` script available at `window.wp.editor`.

The solution is to export all the members of the older `window.wp.editor` module
in the newer module to maintain backwards compatibility.

Props zieladam, spacedmonkey, TimothyBlynJacobs, andraganescu, noisysocks.
Merges [51387] to the 5.8 branch.
See #53437.
Built from https://develop.svn.wordpress.org/branches/5.8@51392


git-svn-id: http://core.svn.wordpress.org/branches/5.8@51003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 17:54:57 +00:00
desrosj
dda2b793fe Block Editor: Fix for theme.json: color.duotone and spacing.units should allow empty sets.
This commit fixes an issue with the color.duotone & spacing.units in which empty values didn't override previous origins, resulting in that a theme couldn't provide an empty set for this via its theme.json.

Props nosolosw, youknowriad, aristath, jorgefilipecosta.
Merges [51383] to the 5.8 branch.
Fixes #53175.
Built from https://develop.svn.wordpress.org/branches/5.8@51386


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 01:06:58 +00:00
desrosj
54a19b3fb9 REST API: Ensure a sidebar's widgets property is a list.
When a widget is removed from a sidebar, if it was removed from the middle of the list, the widgets property would become an object with numeric keys.

The sidebars controller now forces the widgets property to be a list.

Props walbo, timothyblynjacobs.
Merges [51377] to the 5.8 branch.
Fixes #53612.
Built from https://develop.svn.wordpress.org/branches/5.8@51385


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 01:00:56 +00:00
desrosj
bee64c88cb Script Loader: Update jQuery version to 3.6.0 following the update in [50520].
Props audrasjb, ocean90.
Merges [51380] to the 5.8 branch.
Fixes #52707.
Built from https://develop.svn.wordpress.org/branches/5.8@51384


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-09 00:59:57 +00:00
Aaron Jorbin
2360563683 Posts: Prevent an empty excerpt when groups and nested column blocks are present.
This improves the logic within excerpt_remove_blocks() to better handle innerBlocks. This prevents an empty excerpt from being returned when core/columns, core/column, and core/group blocks are present.

This issue has been surfaced in the Query Loop block, where excerpts can be set to display.

This introduces the excerpt_allowed_wrapper_blocks filter for controlling which blocks should be considered wrapper blocks.

Wrapper blocks and their nested contents are not stripped by excerpt_remove_blocks(), allowing their contents to appear in generated excerpts.

Backports [51348], [51375], [51378], and [51379] to the 5.8 branch.

Fixes #53604.
Props aristath, jorbin, SergeyBiryukov, desrosj.
Unprops jorbin.



Built from https://develop.svn.wordpress.org/branches/5.8@51382


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-08 17:28:58 +00:00
desrosj
0ed55411af Tests: Expand tests for get_block_editor_settings().
This adds unit tests to ensure `get_block_editor_settings()` properly maps some previously experimental features to their correct locations in the array of contextualized block editor settings returned by the function.

Follow up to [51149], [51213].

Props felipeelia, SergeyBiryukov.
Merges [51369] to the 5.8 branch.
Fixes #53458.
Built from https://develop.svn.wordpress.org/branches/5.8@51376


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 19:29:57 +00:00
desrosj
904260642f Themes: Remove mention of “FSE” in Core.
“FSE” themes are block themes.

Follow up to [51373].

Unprops desrosj.
Merges [51370-51371] to the 5.8 branch.
Fixes #53497.
Built from https://develop.svn.wordpress.org/branches/5.8@51374


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 19:00:57 +00:00
desrosj
ac2f54268c Themes: Remove mention of “FSE” in Core.
“FSE” themes are block themes.

Props SergeyBiryukov.
Merges [51370-51371] to the 5.8 branch.
Fixes #53497.
Built from https://develop.svn.wordpress.org/branches/5.8@51373


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 18:59:01 +00:00
desrosj
9ed00cd98e Post WordPress 5.8 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/5.8@51366


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 01:05:58 +00:00
desrosj
dfd1094368 WordPress 5.8 RC2.
Built from https://develop.svn.wordpress.org/branches/5.8@51365


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 00:37:57 +00:00
desrosj
d6d75499ce Themes: Remove inline comment that is not relevant in WordPress Core.
This removes an inline comment block that was added when importing the `WP_Theme_JSON` class in [50959]. The comment is relevant to the code only when viewed within the context of the Gutenberg plugin.

Props nosolosw, jorbin, SergeyBiryukov.
Merges [51352] to the 5.8 branch.
Fixes #53576.
Built from https://develop.svn.wordpress.org/branches/5.8@51364


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 00:07:57 +00:00
Peter Wilson
051e04b3cc Block Editor: Update packages with latest fixes for 5.8 RC2
Includes the following fixes:

- Query Block: Type validation of `WP_Query` parameters.

Props ntsekouras, stevehenty, peterwilsoncc, desrosj.
Merges [51362] to the 5.8 branch.
Fixes #53397.


Built from https://develop.svn.wordpress.org/branches/5.8@51363


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-07 00:06:17 +00:00
desrosj
dae3e79ad8 Tests: Update the wp-api-generated.js fixture.
Follow up to [51241].

Props johnbillion, peterwilsoncc.
Merges [51351] to the 5.8 branch.
Fixes #53606.
Built from https://develop.svn.wordpress.org/branches/5.8@51361


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 23:47:58 +00:00
desrosj
2ca8b6ecd7 Help/About: Update the About section for 5.8.
Add the images for About, Freedoms, and Privacy. Update the styles on all About section pages to match the About page style. Fix string issues, missing link wrapper, duplicate copy.

Also updates placeholder links on the page.

Props chanthaboune, kellychoffman, javiarce, ryokuhi, alanjacobmathew, desrosj, SergeyBiryukov, audrasjb.
Merges [51356] and [51359] to the 5.8 branch.
See #52775.
Built from https://develop.svn.wordpress.org/branches/5.8@51360


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 23:42:59 +00:00
John Blackbourn
24500cc798 Build/Test Tools: Add assertions to ensure version-controlled files are not modified during CI, and fix the grunt clean command.
Some tests and some commands that run during the build steps modify files that are under version control. This adds assertions to ensure that these files don't remain in a modified state after the test runs on CI.

This also fixes the `grunt clean` command which erroneously deletes `script-loader-packages.php`. This file is re-populated during the build, but deleting it during the clean is undesirable.

Merges [51355] to the 5.8 branch.

Fixes #53606

Built from https://develop.svn.wordpress.org/branches/5.8@51357


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 19:13:57 +00:00
desrosj
bf186a5712 Docs: Correct the @since tag for the user_erasure_fulfillment_email_headers filter.
Props johnbillion.
See #44314, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51354


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 18:24:57 +00:00
desrosj
636f00b5f2 REST API: Add the $request parameter to methods checking permissions.
This adds the `$request` parameter to the permissions_check() methods within `WP_REST_Widgets_Controller` and adds $request as an allowed parameter to the `permissions_check()` method within `WP_REST_Templates_Controller`.

Even when this parameter is not used by default, it should be implemented to support the class being extended and the method overridden.

Props johnbillion, timothyblynjacobs.
Merges [51349] to the 5.8 branch.
Fixes #53593.
Built from https://develop.svn.wordpress.org/branches/5.8@51350


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:56:59 +00:00
desrosj
c58dfa9dfe Editor: Ensure global styles are loaded in the footer when loading core assets individually.
This fixes the logic in `wp_enqueue_global_styles()` to ensure that global styles are loaded in the footer when a site opts-in to loading Core block assets individually.

This fixes a bug where styles defined in `themes.json` are not respected.

Props walbo, nosolosw, mcsf, aristath, desrosj, jorbin.
Merges [51309] to the 5.8 branch.
Fixes #53494.
Built from https://develop.svn.wordpress.org/branches/5.8@51347


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:17:59 +00:00
desrosj
fcfaf186fa Block Editor: Update packages with latest fixes for 5.8 RC2
Includes the following fixes:

- [Block Library]: Less warnings when blocks try to render themselves.
- Reset z-index on focused widget form
- Refactor appender margin.
- Fix slash inserter for widgets screen.
- Widget screens: set html block as freeform content handler.
- Widget Block: widget_id is undefined when a widget is placed.
- Add <CopyHandler> to WidgetAreasBlockEditorProvider
- Add width: 100% to components-base-control inside wp-block-legacy-widget
- [Widgets editor] Replace the "technical" error notice a more user-friendly one
- Fix legacy widget height overflow
- Fix "Select all" behavior in the editor
- Increase specificity of the NoPreview CSS rules to avoid conflicts with theme styles
- Fix move to widget area checkmark
- Replace legacy widget icon with its new version
- [Block Library - Query Loop]: Set default block variations not to inherit from global query 

Merges [51344] to the 5.8 branch.
Fixes #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51346


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 15:16:19 +00:00
Aaron Jorbin
21ec6417a4 Bundled Themes: Correct customzier typo.
Merges [51343] to 5.8 branch.

This was found in Twenty Twenty-One and Twenty Nineteen.

Props audrasjb, spytzo, sabernhardt, desrosj.
Fixes #53598.

Built from https://develop.svn.wordpress.org/branches/5.8@51345


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 14:47:58 +00:00
desrosj
65474b08f6 Docs: Correct @see references for hooks in the get_option() description.
Follow-up to [51050].

Props SergeyBiryukov.
Merges [51324] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51340


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:44:58 +00:00
desrosj
fa62b16d6d Bundled Themes: Correct @since tags for block patterns.
Follow-up to [49347], [49348], [49583], [49584], [49763], [51103].

Props SergeyBiryukov.
Merges [51324] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51339


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:41:02 +00:00
desrosj
474bb753b3 Twenty Twenty: Add missing documentation for some filters.
Add missing `@since` tags for some functions.

Correct alignment of some `@param` tags.

Follow-up to [46271], [46278], [51304].

Props SergeyBiryukov.
Merges [51322] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51338


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:35:57 +00:00
desrosj
6641ddca11 Twenty Twenty-One: Ensure the dropdown arrow displays for <select> elements when focused.
Props isabel_brison, zieladam, poena.
Merges [51296] to the 5.8 branch.
Fixes #53560.
Built from https://develop.svn.wordpress.org/branches/5.8@51336


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:29:57 +00:00
desrosj
0d0a8817d6 Update the IRC link from Freenode to Libera.chat.
Update follows the update to https://make.wordpress.org/support/handbook/appendix/other-support-locations/introduction-to-irc/.

Fixes #53590.
Props empatogen, audrasjb, jorbin.
Built from https://develop.svn.wordpress.org/branches/5.8@51334


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-06 12:23:58 +00:00
Aaron Jorbin
782af9f9d5 Remove unnecessary function_exists check in get_the_block_template_html
Merges [51321] to the 5.8 branch. Reviewed by SergeyBiryukov.

WordPress can be confident that WordPress functions exist.

I forgot this function existed.
And I thought that it would fatal, but it didn't
And it was so nice
So peaceful and quiet
I forgot this function existed
It isn't love, it isn't hate, it's just indifference

Introduced in [51003].

Props walbo.
Fixes #53578. See #53176.


Built from https://develop.svn.wordpress.org/branches/5.8@51325


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-03 15:15:56 +00:00
desrosj
47c74865db Twenty Twenty-One: Add missing documentation for some filters.
Add missing `@since` tags for some functions.

Follow-up to [49216], [49220], [49854], [51294].

Props SergeyBiryukov.
Merges [51304] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51320


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:08:57 +00:00
desrosj
b6c637f5d4 Twenty Twenty-One: Improve documentation per the documentation standards:
- Remove unnecessary `@access` tags that were previously removed from core.
- Remove an empty line between `@param` and `@return` tags.
- Correct alignment of `@param` tags. 

Follow-up to [41161], [41162], [41168], [49216], [49220].

Props SergeyBiryukov.
Merges [51294] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51319


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:06:57 +00:00
desrosj
23805b2511 Docs: Improve documentation for optional parameters in WP_Theme_JSON methods per the documentation standards.
Additionally:

- Remove an empty line between `@param` and `@return` tags.
- Correct alignment of `@param` tags. 

Follow-up to [50959], [50973], [51149], [51284], [51289].

Props SergeyBiryukov.
Merges [51292] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51318


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:05:57 +00:00
desrosj
aacf626adf Docs: Remove an empty line between @param and @return tags in some newly added REST API methods, per the documentation standards.
Follow-up to [48242], [49925], [51003], [51021].

Props SergeyBiryukov.
Merges [51289] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51317


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:04:56 +00:00
desrosj
f51b2d6845 Docs: List the expected type first instead of WP_Error in some REST API methods added in 5.8.
Follow-up to [46696], [49929], [50995], [51021].

Props SergeyBiryukov.
Merges [51286] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51316


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:03:57 +00:00
desrosj
872b22de7a Docs: Improve documentation for optional parameters in WP_Theme_JSON_Resolver methods per the documentation standards.
Move `add_action()` call to `wp-includes/default-filters.php`.

Follow-up to [50959], [51221].

Props SergeyBiryukov.
Merges [51284] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51315


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:02:58 +00:00
desrosj
9870ce6213 Docs: Add missing @since tags for some WP_Theme_JSON methods.
Docs: Update syntax for multi-line comments per the documentation standards.

Follow-up to [50959], [50967], [50973], [51051], [51089], [51149].

Props SergeyBiryukov.
Merges [51283] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51314


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 19:00:57 +00:00
desrosj
6dafb3154f Docs: Adjust wp_dashboard_browser_nag() DocBlock per the documentation standards.
Follow-up to [51117], [51119], [51120].

Props SergeyBiryukov.
Merges [51282] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51313


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:59:56 +00:00
desrosj
6673ddf2a1 Docs: Add @ticket references to some WP_Theme_JSON tests.
Follow-up to [50973], [51054].

Props SergeyBiryukov.
Merges [51280] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51312


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:58:58 +00:00
desrosj
20b93039f3 Docs: Add missing @since tags for some REST API methods added in 5.8.
Follow-up to [50995], [51021].

Props SergeyBiryukov.
Merges [51280] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51311


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:55:00 +00:00
desrosj
8d871746a4 Docs: Document the globals used in WP_REST_Widget_Types_Controller and WP_REST_Widgets_Controller.
Follow-up to [50995].

Props SergeyBiryukov.
Merges [51279] to the 5.8 branch.
See #52628, #53461.
Built from https://develop.svn.wordpress.org/branches/5.8@51310


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:53:00 +00:00
desrosj
07533bff1e Editor: Ensure the Query block pattern category is translatable.
Because the `__()` translation function was used here, the Query block pattern category string is not translatable. `_x()` is the correct function here as that passes the second parameter as context and not text domain.

Follow up to [50948].

Props walbo.
Merges [51307] to the 5.8 branch.
Fixes #53577.
Built from https://develop.svn.wordpress.org/branches/5.8@51308


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50917 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 18:38:57 +00:00
desrosj
4522b57280 Coding Standards: Add missing visibility keywords to WP_Theme, WP_Theme_JSON, and WP_Theme_JSON_Resolver tests.
Follow-up to [50959], [50960], [50967].

Props SergeyBiryukov.
Merges [51287] to the 5.8 branch.
Fixes #52627.
Built from https://develop.svn.wordpress.org/branches/5.8@51305


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50914 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-02 12:25:58 +00:00
desrosj
fe3ecbcade Docs: Correct documentation for rest_{$post_type}_query and rest_{$taxonomy}_query` filters.
Synchronize documentation for related `rest_{$object_type}_query` filters for consistency.

Props dlh.
Merges [51293] to the 5.8 branch.
Fixes #53568.
Built from https://develop.svn.wordpress.org/branches/5.8@51295


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-07-01 18:51:02 +00:00
desrosj
0420eac464 Script Loader: Revert [51267].
This was missed in [51268] when reverting [51259-51260,51265].

Props pbiron.
Merges [51288] to the 5.8 branch.
See #53397.
Built from https://develop.svn.wordpress.org/branches/5.8@51291


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50900 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 18:48:58 +00:00
desrosj
337cfb97c1 REST API: Allow multiple widgets to be deleted in a single batch request.
This resets the `WP_Widget::$updated` flag when deleting a widget, to avoid blocking all future updates in a request.

Props noisysocks, andraganescu.
Merges [51277] to the 5.8 branch.
Fixes #53557.
Built from https://develop.svn.wordpress.org/branches/5.8@51290


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50899 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 18:47:01 +00:00
Peter Wilson
e59db27f8c Security: Add 5.8 to the list of versions receiving security updates.
Props desrosj.
Merges [51274] to the 5.8 branch.

Built from https://develop.svn.wordpress.org/branches/5.8@51275


git-svn-id: http://core.svn.wordpress.org/branches/5.8@50884 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 04:14:49 +00:00
desrosj
2c1f2bf1e4 Post WordPress 5.8 RC1 version bump.
Built from https://develop.svn.wordpress.org/trunk@51270


git-svn-id: http://core.svn.wordpress.org/trunk@50879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 03:44:58 +00:00
desrosj
77d0f6114f WordPress 5.8 RC1.
Built from https://develop.svn.wordpress.org/trunk@51269


git-svn-id: http://core.svn.wordpress.org/trunk@50878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 03:16:56 +00:00
desrosj
8c3e1e9aa8 Build/Test Tools: Revert [51259-51256,51265].
[51259] introduced a PHP notice that was not actually fixed by [51265]. Reverting these changes in order to investigate further.

See #53397.
Built from https://develop.svn.wordpress.org/trunk@51268


git-svn-id: http://core.svn.wordpress.org/trunk@50877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 02:14:56 +00:00
desrosj
e7387a9ace Script Loader: Fix PHP notice caused by the viewScript for the core/file block.
This fixes a PHP notice caused by the `viewScript` for the `core/file` block having `.min.js` instead of just `.js`.

`register_block_script_handle()` was incorrectly looking for `view.min.asset.php`, which does not exist, and caused the `_doing_it_wrong()` notice.

This adds a check for `.min.js` in the `viewScript` field of `block.json` and corrects it to `.js` in order to match the expected pattern of `view.asset.php` until a more permanent fix can be created.

Follow up to [51259].

Props ipstenu, pbiron, peterwilsoncc.
See #53397.
Built from https://develop.svn.wordpress.org/trunk@51267


git-svn-id: http://core.svn.wordpress.org/trunk@50876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 01:46:57 +00:00
Peter Wilson
1b7cd950ca Upgrade/Install: Notify users of deactivated plugins during upgrade.
This adds a one-off notice to the dashboard in the event WordPress has automatically deactivated a plugin due to incompatibility with the new version of WordPress.

Introduces the new private function `deactivated_plugins_notice()` to display the notice in the dashboard. Introduces the new auto-loaded option `wp_force_deactivated_plugins` to store a list of automatically deactivated plugins; the option is used on both a site and network level.

Follow up to [51180].

Props desrosj, jorbin, azaozz, SergeyBiryukov, peterwilsoncc.
See #53432.


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


git-svn-id: http://core.svn.wordpress.org/trunk@50875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-30 00:21:58 +00:00
desrosj
8fa45ab8f8 Script Loader: Add file block assets to the svn-ignore list.
These are automatically generated and should not be committed.

Follow up to [51259].

Props gziolo, youknowriad.
See #53397.
Built from https://develop.svn.wordpress.org/trunk@51265


git-svn-id: http://core.svn.wordpress.org/trunk@50874 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 19:10:57 +00:00
ryelle
aea10c0c44 Help/About: WordPress 5.8 About Page.
This is the start of the WordPress 5.8 about page, introducing new content and a first pass of the new style.

Props chanthaboune, cbringmann, webcommsat, marybaum, melchoyce, shaunandrews, desrosj, ryelle, oglekler, yvettesonneveld, nalininonstopnewsuk, meher, femkreations, alanjacobmathew, courane01, annezazu, matveb, milana_cap, javiarce, ryokuhi, audrasjb.
See #52775.


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


git-svn-id: http://core.svn.wordpress.org/trunk@50873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 19:06:57 +00:00
Aaron Jorbin
ad14ee34eb Docs: Further Improve documentation for wp_should_load_separate_core_block_assets().
In [51256], the documentation was improved, this further improves it. As scripts are not yet a part of what this function does, they are not mentioned explicitly. Assets is used so that the docs don't need a lot of improvements when scripts do come into play..

Props desrosj, SergeyBiryukov, Jorbin.
See #53505.


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


git-svn-id: http://core.svn.wordpress.org/trunk@50872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 18:45:56 +00:00
desrosj
6fc65b33d5 Script Loader: Use the provided block version when registering styles.
This updates `register_block_style_handle()` to use the `version` value provided in the `$metadata` parameter for non-Core blocks (when present). This removes the requirement to use `filemtime()` to generate a unique version.

When `version` is not defined within `$metadata`, the script version will fallback to using the current version of WordPress.

The block version should be considered similar to the one specified by plugin developers within the header of the main plugin file.

Props hellofromTonya, gziolo, jorbin, desrosj, walbo, aristath.
Fixes #53507.
Built from https://develop.svn.wordpress.org/trunk@51262


git-svn-id: http://core.svn.wordpress.org/trunk@50871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 18:24:56 +00:00
youknowriad
2f27f24191 Block Editor: Include the latest fixes targetted for 5.8 RC1.
It includes:

 - Add a label for screen reader in categories block gutenberg#33060
 - Remove "is-dark-theme" rules from mixins. gutenberg#33058
 - Adjust widget form margins in the new widget editor gutenberg#33040
 - [Block Library - Query Loop]: Select first Query Loop found from pattern selection gutenberg#32737

See #53397.

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


git-svn-id: http://core.svn.wordpress.org/trunk@50870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 15:53:43 +00:00
desrosj
d5cf36000b Docs: Correct @since annotation for WP_Block_Type->view_script.
Follow up to [51259].

Props swissspidy.
See #53397.
Built from https://develop.svn.wordpress.org/trunk@51260


git-svn-id: http://core.svn.wordpress.org/trunk@50869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 15:47:58 +00:00
youknowriad
8e08c569c5 Build: Split packages and blocks to their webpack configs.
This also adds support for the viewScript for blocks fixing 
the PDF preview for file blocks.

Props desrosj, gziolo.
See #53397.

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


git-svn-id: http://core.svn.wordpress.org/trunk@50868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 15:09:58 +00:00
desrosj
fe87833764 Build/Test Tools: Add the artifacts directory to svn-ignore and .gitignore.
When E2E tests fail, test snapshots with more details about the failure are placed in this folder.

Props isabel_brison.
Fixes #53549.
Built from https://develop.svn.wordpress.org/trunk@51258


git-svn-id: http://core.svn.wordpress.org/trunk@50867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 14:45:57 +00:00
Sergey Biryukov
c804143db6 Twenty Seventeen: Avoid JS errors when displaying legacy widgets.
Make sure the `$sidebar` variable is defined and has at least one entry in the array, before adding the `.below-entry-meta` class to elements below the entry meta.

Previously, the theme expected sidebar markup to exist on the page if sidebars are defined, but that markup is missing since only the widget itself and headers/footers of the page are loaded in the iframe used to display legacy widgets (widgets added prior to WordPress 5.8).

Props Clorith, Boniu91, desrosj.
Fixes #53512.
Built from https://develop.svn.wordpress.org/trunk@51257


git-svn-id: http://core.svn.wordpress.org/trunk@50866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 12:57:56 +00:00
Sergey Biryukov
600d611e0d Docs: Improve documentation for wp_should_load_separate_core_block_assets().
This should clarify the purpose of the function and what effect it has on block styles loading.

Props aristath, desrosj, jorbin, SergeyBiryukov.
See #53505.
Built from https://develop.svn.wordpress.org/trunk@51256


git-svn-id: http://core.svn.wordpress.org/trunk@50865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 11:12:02 +00:00
desrosj
186d7c75ea Coding Standards: Apply an alignment fix after composer format.
Follow up to [51254].

See #53375.
Built from https://develop.svn.wordpress.org/trunk@51255


git-svn-id: http://core.svn.wordpress.org/trunk@50864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 00:39:58 +00:00
desrosj
516bc482bd Editor: Prevent block stylesheets from loading when they do not exist.
This fixes an issue where block stylesheets were being loaded even if they did not exist, causing 404 errors. The issue presented itself when the site was choosing to load block assets individually through the `should_load_separate_core_block_assets` filter hook.

This also fixes an issue where non-Core blocks would only be registered if they actually had asset files. This prevents developers from adding additional information to a style handle, such as inline styles through `wp_add_inline_style()`.

Props walbo, jorbin, aristath, desrosj, hellofromTonya.
Fixes #53375.
Built from https://develop.svn.wordpress.org/trunk@51254


git-svn-id: http://core.svn.wordpress.org/trunk@50863 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-29 00:08:57 +00:00
desrosj
fe2bd634e4 Twenty Twenty-One: Ensure Duotone images are displayed correctly in Dark Mode.
This reduces the specificity of the CSS selector applying a dimming effect to images so that the new Duotone feature is properly applied to images.

Props walbo.
Fixes #53531.
Built from https://develop.svn.wordpress.org/trunk@51253


git-svn-id: http://core.svn.wordpress.org/trunk@50862 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-28 23:40:59 +00:00
Clorith
87a427d3f0 Site Health: Improve readability of site titles.
This splits up the site title for the Site Health tabs to make it more obvious what page a user is viewing, and which tab under that page. It also removes a possible source of warnings if a user tries accessing a tab that does not exist.

The introduction of this check for existing tabs also improves the accuracy of the active-tab indicator, ensuring the indicator shows up for the default tab, when no other tab has been selected.

Follow-up to [50764].

Props audrasjb, swissspidy.
Fixes #53535.
Built from https://develop.svn.wordpress.org/trunk@51252


git-svn-id: http://core.svn.wordpress.org/trunk@50861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-28 23:07:57 +00:00
desrosj
ccdb1766ae Themes: Remove mention of “FSE” in Core.
Props aristath, jorbin.
Fixes #53497.
Built from https://develop.svn.wordpress.org/trunk@51251


git-svn-id: http://core.svn.wordpress.org/trunk@50860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-28 19:11:57 +00:00
youknowriad
687fcda03f Block Editor: Package updates including fixes from Gutenberg for WordPress 5.8 RC1.
This includes the fixes from https://github.com/WordPress/gutenberg/pull/33036

See #53397.

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


git-svn-id: http://core.svn.wordpress.org/trunk@50859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-28 16:01:36 +00:00
Sergey Biryukov
6311baa859 Docs: Update documentation for WP_Widget_Block per the documentation standards.
Remove unused `$post` global reference.

Follow-up to [50995], [51058], [51063], [51221].

See #52628, #53461.
Built from https://develop.svn.wordpress.org/trunk@51249


git-svn-id: http://core.svn.wordpress.org/trunk@50858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-28 08:35:57 +00:00
noisysocks
7131a90b0a Widgets REST API: Fix non-multi widgets not appearing in wp_inactive_widgets
Registered widgets that do not extend WP_Widget should appear in the
wp_inactive_widgets sidebar by default. Having the widgets REST API call
retrieve_widgets() before serving any request ensures that this will happen.

This is a similar fix to [51235].

Fixes #53534.
Props zieladam, timothyblynjacobs.

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


git-svn-id: http://core.svn.wordpress.org/trunk@50857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-28 04:34:57 +00:00
Clorith
c26143ea2e Site Health: Add a unique wrapper for dashboard widget content.
This wraps the inner-content of the Site Health dashboard widget to give a unique target for CSS selectors, restoring the ability to collapse the widget.

The initial implementation targeted the `.inside` class used by all widgets to apply styling to the widget content, but this prevented the widget from being collapsed, as it added grid-styles which other widgets do not use, overriding the usual behavior when toggling widget visibility.

Follow-up to [50833].

Props alanjacobmathew, walbo.
Fixes #53521.
Built from https://develop.svn.wordpress.org/trunk@51247


git-svn-id: http://core.svn.wordpress.org/trunk@50856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-27 15:56:58 +00:00
Sergey Biryukov
d18f86031a General: Ensure svn:eol-style is consistently set for all recently added files.
Follow-up to [49135], [49226], [49320], [49478], [49574], [51198].

Fixes #53528.
Built from https://develop.svn.wordpress.org/trunk@51246


git-svn-id: http://core.svn.wordpress.org/trunk@50855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-27 12:46:01 +00:00
Sergey Biryukov
2797ef60da Block Editor: Remove empty blocks/query-loop directory.
The Query Loop block was renamed to Post Template.

Follow-up to [51101].

See #52991.
Built from https://develop.svn.wordpress.org/trunk@51245


git-svn-id: http://core.svn.wordpress.org/trunk@50854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-27 11:29:00 +00:00