diff --git a/.github/ISSUE_TEMPLATE/New_release.md b/.github/ISSUE_TEMPLATE/New_release.md
index 629a4dafa5ba56..c07dcfa3c466c6 100644
--- a/.github/ISSUE_TEMPLATE/New_release.md
+++ b/.github/ISSUE_TEMPLATE/New_release.md
@@ -23,7 +23,6 @@ This issue is to provide visibility on the progress of the release process of Gu
### RC Day - {Weekday, Month, Date}
-- [ ] _Optional:_ Attend `#core-editor` meeting (14:00UTC)
- [ ] Post a message in `#core-editor` channel to let folks know you are starting the RC release process
- [ ] Organize and Label PRs on the relevant milestone
- [ ] Start the release process by triggering the `rc` [workflow](https://developer.wordpress.org/block-editor/contributors/code/release/#running-workflow)
diff --git a/.github/workflows/cherry-pick-wp-release.yml b/.github/workflows/cherry-pick-wp-release.yml
index fd7d365600c5e5..d1089aa99f6ae5 100644
--- a/.github/workflows/cherry-pick-wp-release.yml
+++ b/.github/workflows/cherry-pick-wp-release.yml
@@ -66,6 +66,7 @@ jobs:
git cherry-pick $COMMIT_SHA || echo "cherry-pick-failed" > result
if [ -f result ] && grep -q "cherry-pick-failed" result; then
echo "conflict=true" >> $GITHUB_ENV
+ echo "commit_sha=$COMMIT_SHA" >> $GITHUB_ENV
git cherry-pick --abort
else
NEW_COMMIT_SHA=$(git rev-parse HEAD)
@@ -122,6 +123,7 @@ jobs:
with:
script: |
const prNumber = context.issue.number;
+ const commitSha = process.env.commit_sha;
const targetBranch = `wp/${process.env.version}`;
console.log(`prNumber: ${prNumber}`);
console.log(`targetBranch: ${targetBranch}`);
@@ -129,5 +131,28 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
- body: `There was a conflict while trying to cherry-pick the commit to the ${targetBranch} branch. Please resolve the conflict manually and create a PR to the ${targetBranch} branch.`
+ body: `There was a conflict while trying to cherry-pick the commit to the ${targetBranch} branch. Please resolve the conflict manually and create a PR to the ${targetBranch} branch.
+
+ PRs to ${targetBranch} are similar to PRs to trunk, but you should base your PR on the ${targetBranch} branch instead of trunk.
+
+ \`\`\`
+ # Checkout the ${targetBranch} branch instead of trunk.
+ git checkout ${targetBranch}
+ # Create a new branch for your PR.
+ git checkout -b my-branch
+ # Cherry-pick the commit.
+ git cherry-pick ${commitSha}
+ # Check which files have conflicts.
+ git status
+ # Resolve the conflict...
+ # Add the resolved files to the staging area.
+ git status
+ git add .
+ git cherry-pick --continue
+ # Push the branch to the repository
+ git push origin my-branch
+ # Create a PR and set the base to the ${targetBranch} branch.
+ # See https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/changing-the-base-branch-of-a-pull-request.
+ \`\`\`
+ `
});
diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml
index c983b0fd338435..488f41c217e7c2 100644
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test.yml
@@ -158,15 +158,15 @@ jobs:
include:
# Test with the previous WP version.
- php: '7.2'
- wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }}
+ wordpress: 'previous major version'
- php: '7.4'
- wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }}
+ wordpress: 'previous major version'
- php: '8.2'
- wordpress: ${{ needs.compute-previous-wordpress-version.outputs.previous-wordpress-version }}
+ wordpress: 'previous major version'
env:
WP_ENV_PHP_VERSION: ${{ matrix.php }}
- WP_ENV_CORE: ${{ matrix.wordpress == '' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wordpress ) }}
+ WP_ENV_CORE: ${{ matrix.wordpress == '' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', needs.compute-previous-wordpress-version.outputs.previous-wordpress-version ) }}
steps:
- name: Checkout repository
@@ -240,6 +240,7 @@ jobs:
npm run wp-env run tests-wordpress php -i
npm run wp-env run tests-wordpress /var/www/html/wp-content/plugins/gutenberg/vendor/bin/phpunit -- --version
npm run wp-env run tests-wordpress locale -a
+ npm run wp-env run tests-cli wp core version
- name: Running single site unit tests
if: ${{ ! matrix.multisite }}
diff --git a/changelog.txt b/changelog.txt
index 38dbcadaa4d9c3..3a00bcf11396fe 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,5 +1,195 @@
== Changelog ==
+= 18.7.0-rc.1 =
+
+
+## Changelog
+
+### Enhancements
+
+- Add: Content panel for template parts. ([62034](https://github.com/WordPress/gutenberg/pull/62034))
+- Move Sticky toggle to status popover. ([62782](https://github.com/WordPress/gutenberg/pull/62782))
+- Rename yieldToMain to splitTask and export from @wordpress/interactivity. ([62665](https://github.com/WordPress/gutenberg/pull/62665))
+- Update: Check assignable properties on the duplicate action. ([62590](https://github.com/WordPress/gutenberg/pull/62590))
+- Update: Followups to the template and template_lock rest api addition. ([62696](https://github.com/WordPress/gutenberg/pull/62696))
+- Update: Reverse backport changes on post type REST API changes. ([62751](https://github.com/WordPress/gutenberg/pull/62751))
+- Align naming modals. ([62788](https://github.com/WordPress/gutenberg/pull/62788))y
+- Add writing mode support to other blocks. ([62727](https://github.com/WordPress/gutenberg/pull/62727))
+- Display the DocumentBar for Style Book and Style Revisions. ([62669](https://github.com/WordPress/gutenberg/pull/62669))
+- fetchLinkSuggestions: Allow for partial matching. ([62570](https://github.com/WordPress/gutenberg/pull/62570))
+- DataViews: Support passing the registry to actions callbacks. ([62505](https://github.com/WordPress/gutenberg/pull/62505))
+- Add tooltip on hover of color and typography presets. ([62201](https://github.com/WordPress/gutenberg/pull/62201))
+- Revert change that removes the social link block when pressing backspace in the URL Popover. ([61344](https://github.com/WordPress/gutenberg/pull/61344))
+
+
+### Bug Fixes
+
+- Add `context` in post actions API. ([62443](https://github.com/WordPress/gutenberg/pull/62443))
+- Add `html` to reset styles for the `.editor-styles-wrapper` container. ([62350](https://github.com/WordPress/gutenberg/pull/62350))
+- Cherry pick script: Make authenticated requests. ([62473](https://github.com/WordPress/gutenberg/pull/62473))
+- Editor: Fix blocked Post Publish Panel buttons on mobile. ([62736](https://github.com/WordPress/gutenberg/pull/62736))
+- Fix cherry-pick script, add missing --repo arg. ([62643](https://github.com/WordPress/gutenberg/pull/62643))
+- Fix rawHandling, pasteHandling for mixed content with blocks and classic. ([62545](https://github.com/WordPress/gutenberg/pull/62545))
+- Fix: Active template is not highlighted properly in list view. ([62811](https://github.com/WordPress/gutenberg/pull/62811))
+- Fix: Check Capability to create pages on DataViews add new page button. ([62592](https://github.com/WordPress/gutenberg/pull/62592))
+- Fix: Check ability to create patterns on the add new pattern modal. ([62633](https://github.com/WordPress/gutenberg/pull/62633))
+- Fix: Check create capability on duplicate post action. ([62620](https://github.com/WordPress/gutenberg/pull/62620))
+- Fix: Check permissions on duplicate pattern and template part actions. ([62757](https://github.com/WordPress/gutenberg/pull/62757))
+- Fix: Comments and Pingbacks get cleared out when a pattern is edited. ([62507](https://github.com/WordPress/gutenberg/pull/62507))
+- Fix: DataViews: Active page is not highlighted properly in list view. ([62378](https://github.com/WordPress/gutenberg/pull/62378))
+- Fix: Include permission management on permanently delete, rename, and restore. ([62754](https://github.com/WordPress/gutenberg/pull/62754))
+- Fix: List view renders an empty menu when no actions are eligible. ([62786](https://github.com/WordPress/gutenberg/pull/62786))
+- Fix: Post_type template is not used when creating a page in site editor. ([62488](https://github.com/WordPress/gutenberg/pull/62488))
+- Fix: Resetting template part causes notification saying it's been delete. ([62521](https://github.com/WordPress/gutenberg/pull/62521))
+- Fix: The trash post action doesn't take into account user capabilities. ([62589](https://github.com/WordPress/gutenberg/pull/62589))
+- Inspector: Improve handling of long words in post titles. ([62691](https://github.com/WordPress/gutenberg/pull/62691))
+- Revert "Revert test data for `WithSlug` variation (#62579)". ([62587](https://github.com/WordPress/gutenberg/pull/62587))
+- Show publish panel only in edit mode. ([62813](https://github.com/WordPress/gutenberg/pull/62813))
+- Site Editor: Improve the frame animation. ([62676](https://github.com/WordPress/gutenberg/pull/62676))
+- DataViews: Remove selection correcting, set initial state. ([62796](https://github.com/WordPress/gutenberg/pull/62796))
+- Pattern overrides: Disallow override for image with caption/href. ([62747](https://github.com/WordPress/gutenberg/pull/62747))
+- Editor: Make VisualEditor a stacking context. ([62681](https://github.com/WordPress/gutenberg/pull/62681))
+- Fix toggle active font logic. ([62614](https://github.com/WordPress/gutenberg/pull/62614))
+- Save Panel: Remove connections icon and fix padding. ([62542](https://github.com/WordPress/gutenberg/pull/62542))
+- Editor: Render editPost slots only in the post editor (same for site editor). ([62531](https://github.com/WordPress/gutenberg/pull/62531))
+- Fix: Don't allow synced patterns to be inserted on shuffling. ([62422](https://github.com/WordPress/gutenberg/pull/62422))
+- Fix ExcerptPanel decode issue. ([62336](https://github.com/WordPress/gutenberg/pull/62336))
+
+#### Block Library
+- Add letter spacing inheritance for the navigation block. ([62745](https://github.com/WordPress/gutenberg/pull/62745))
+- Caption utility component: Allow the main CSS Class Name to be excluded from the markup. ([62485](https://github.com/WordPress/gutenberg/pull/62485))
+- Fix: Empty style attribute issue in navigation block. ([62600](https://github.com/WordPress/gutenberg/pull/62600))
+- Image Block: Fix Aspect Ratio button position. ([62776](https://github.com/WordPress/gutenberg/pull/62776))
+- Media & text: Update the image replacement logic. ([62030](https://github.com/WordPress/gutenberg/pull/62030))
+- Post Date Block: Fix PHP warning error. ([62783](https://github.com/WordPress/gutenberg/pull/62783))
+- Template Part: Improve how the tag name attribute is handled. ([62785](https://github.com/WordPress/gutenberg/pull/62785))
+- fix: Update block category to design and build documentation. ([61905](https://github.com/WordPress/gutenberg/pull/61905))
+
+#### Global Styles
+- Allow children of alignfull flow layouts to have root padding. ([62670](https://github.com/WordPress/gutenberg/pull/62670))
+- Prevent duplicate block style variations CSS. ([62465](https://github.com/WordPress/gutenberg/pull/62465))
+- Remove obsolete hook resolving shared block style variations. ([62808](https://github.com/WordPress/gutenberg/pull/62808))
+- Section Styles: Switch away from using init for variation registration. ([62640](https://github.com/WordPress/gutenberg/pull/62640))
+- Skip registration of variation styles when unsupported. ([62529](https://github.com/WordPress/gutenberg/pull/62529))
+- Styles: Lower specificity of figcaption style to allow theme.json override. ([62689](https://github.com/WordPress/gutenberg/pull/62689))
+
+#### Components
+- CustomSelectControl V2: Fix setting initial value and reacting to external controlled updates. ([62733](https://github.com/WordPress/gutenberg/pull/62733))
+- CustomSelectControlV2: Handle long strings in selected value. ([62198](https://github.com/WordPress/gutenberg/pull/62198))
+
+#### Block Editor
+- Raw handling: Fix too aggressive indented list removal. ([62622](https://github.com/WordPress/gutenberg/pull/62622))
+- Writing flow: Split heading into default block. ([61891](https://github.com/WordPress/gutenberg/pull/61891))
+
+
+### Accessibility
+
+- Fix custom color palette. ([62753](https://github.com/WordPress/gutenberg/pull/62753))
+- Fix lock modal dialog accessibility and semantics. ([62795](https://github.com/WordPress/gutenberg/pull/62795))
+- Image block: Fix focus style not around whole image when linked. ([62556](https://github.com/WordPress/gutenberg/pull/62556))
+- Pages data view: Update view icons. ([62136](https://github.com/WordPress/gutenberg/pull/62136))
+- Make the fonts management modal dialog more discoverable. ([62129](https://github.com/WordPress/gutenberg/pull/62129))
+
+
+### Performance
+
+- Improve performance of `compute_style_properties` method. ([62522](https://github.com/WordPress/gutenberg/pull/62522))
+- Run block variation hook only for matches. ([62617](https://github.com/WordPress/gutenberg/pull/62617))
+- Section Styles: Improve performance and conceptual consistency. ([62712](https://github.com/WordPress/gutenberg/pull/62712))
+
+
+### Experiments
+
+- Grid interactivity: Allow blocks to be positioned in manual mode using drag and drop. ([61025](https://github.com/WordPress/gutenberg/pull/61025))
+
+
+### Documentation
+
+- Add `VisualEditorGlobalKeyboardShortcuts` documentation. ([62710](https://github.com/WordPress/gutenberg/pull/62710))
+- Add changelog entry for splitTask export from @wordpress/interactivity. ([62805](https://github.com/WordPress/gutenberg/pull/62805))
+- Add documentation for PostSlug and PostSlugCheck component. ([62102](https://github.com/WordPress/gutenberg/pull/62102))
+- Adds comment on blocks resource referencing wp_block post type. ([62722](https://github.com/WordPress/gutenberg/pull/62722))
+- Changelogs: Standardize sections. ([58268](https://github.com/WordPress/gutenberg/pull/58268))
+- Correct documentation for WP_Block_Parser_Frame class. ([62598](https://github.com/WordPress/gutenberg/pull/62598))
+- Create Block: Add missing changelog entries. ([62791](https://github.com/WordPress/gutenberg/pull/62791))
+- Docs/iAPI: Fix wrong code snippet in data-wp-run example. ([62835](https://github.com/WordPress/gutenberg/pull/62835))
+- Docs/iapi warnings new directives wp 6 6. ([62789](https://github.com/WordPress/gutenberg/pull/62789))
+- Fix async directives API documentation. ([62759](https://github.com/WordPress/gutenberg/pull/62759))
+- Fix: Remove inexistent link from the documentation. ([62624](https://github.com/WordPress/gutenberg/pull/62624))
+- Interactivity API docs: Add wp-async directives doc. ([62663](https://github.com/WordPress/gutenberg/pull/62663))
+- Query Loop block: Clarify explanation around query loop variation example. ([62605](https://github.com/WordPress/gutenberg/pull/62605))
+- Small Typo correction in block-library.md file. ([62765](https://github.com/WordPress/gutenberg/pull/62765))
+- Update link to API section in block-editor README.md. ([62671](https://github.com/WordPress/gutenberg/pull/62671))
+- Update old links in @wordpress/babel-preset-default. ([62616](https://github.com/WordPress/gutenberg/pull/62616))
+- Updates the reference links in @wordpress/compose documentation. ([62593](https://github.com/WordPress/gutenberg/pull/62593))
+- [Developer Documentation] fix link URL. ([62725](https://github.com/WordPress/gutenberg/pull/62725))
+
+
+### Code Quality
+
+- Autoformat changelogs. ([62650](https://github.com/WordPress/gutenberg/pull/62650))
+- Autoformat e2e-tests package JavaScript. ([62572](https://github.com/WordPress/gutenberg/pull/62572))
+- Edit site: Do not autoformat edit-site/lib. ([62573](https://github.com/WordPress/gutenberg/pull/62573))
+- Move dep to dev deps. ([62673](https://github.com/WordPress/gutenberg/pull/62673))
+- Rename readme file with uppercase extension. ([62697](https://github.com/WordPress/gutenberg/pull/62697))
+- Site Editor: Don't render empty body tag. ([62769](https://github.com/WordPress/gutenberg/pull/62769))
+- Change `grid-visualizer` folder name to `grid`. ([62810](https://github.com/WordPress/gutenberg/pull/62810))
+- Add lib-font credits and license in source code. ([60973](https://github.com/WordPress/gutenberg/pull/60973))
+
+#### Components
+- Remove Framer Motion from `DropZone`. ([62044](https://github.com/WordPress/gutenberg/pull/62044))
+- `CustomSelectControlV2`: Fix handling of extra attributes passed to `options` in the legacy adapter. ([62255](https://github.com/WordPress/gutenberg/pull/62255))
+
+
+### Tools
+
+- Dependencies: Upgrade @octokit/webhooks. ([62666](https://github.com/WordPress/gutenberg/pull/62666))
+- Rename the wp-env schema to not be a dotfile. ([62634](https://github.com/WordPress/gutenberg/pull/62634))
+- env: Ignore `\$schema` key in environment configuration parsing. ([62626](https://github.com/WordPress/gutenberg/pull/62626))
+
+#### Testing
+- Add end-to-end test to ensure block bindings work well with symbols and numbers. ([62410](https://github.com/WordPress/gutenberg/pull/62410))
+- CustomSelectControl: Align v1 and legacy v2 unit tests. ([62706](https://github.com/WordPress/gutenberg/pull/62706))
+- Fix end-to-end tests in dev mode. ([62642](https://github.com/WordPress/gutenberg/pull/62642))
+- Improve maintainability of theme json class tests. ([62463](https://github.com/WordPress/gutenberg/pull/62463))
+- Release automation: Try cherry-picking automation. ([62716](https://github.com/WordPress/gutenberg/pull/62716))
+- Remove changelog checks for branches other than trunk. ([62645](https://github.com/WordPress/gutenberg/pull/62645))
+- Skip failing image block test. ([62781](https://github.com/WordPress/gutenberg/pull/62781))
+- Skip test: Create a new page, edit template and toggle page template preview. ([62799](https://github.com/WordPress/gutenberg/pull/62799))
+- Tests: Simplify test set up in `WP_Block_Supports_Block_Style_Variations_Test`. ([62637](https://github.com/WordPress/gutenberg/pull/62637))
+- Theme JSON resolver: Read theme.json files from the styles/ folder only once. ([62638](https://github.com/WordPress/gutenberg/pull/62638))
+
+#### Build Tooling
+- Generic name for previous version of WP tests. ([62853](https://github.com/WordPress/gutenberg/pull/62853))
+- Github PHP changes workflow: Remove it. ([62609](https://github.com/WordPress/gutenberg/pull/62609))
+
+
+### Various
+
+- Update Private API opt-in string for WP 6.6. ([62635](https://github.com/WordPress/gutenberg/pull/62635))
+- Update caniuse-lite dependency to latest version. ([62611](https://github.com/WordPress/gutenberg/pull/62611))
+
+
+## First-time contributors
+
+The following PRs were merged by first-time contributors:
+
+- @aatanasovdev: Caption utility component: Allow the main CSS Class Name to be excluded from the markup. ([62485](https://github.com/WordPress/gutenberg/pull/62485))
+- @dilipbheda: Correct documentation for WP_Block_Parser_Frame class. ([62598](https://github.com/WordPress/gutenberg/pull/62598))
+- @graylaurenm: Add letter spacing inheritance for the navigation block. ([62745](https://github.com/WordPress/gutenberg/pull/62745))
+- @ivan-ottinger: Editor: Fix blocked Post Publish Panel buttons on mobile. ([62736](https://github.com/WordPress/gutenberg/pull/62736))
+- @michakrapp: [Developer Documentation] fix link URL. ([62725](https://github.com/WordPress/gutenberg/pull/62725))
+- @saulyz: Fix rawHandling, pasteHandling for mixed content with blocks and classic. ([62545](https://github.com/WordPress/gutenberg/pull/62545))
+- @snehapatil2001: fix: Update block category to design and build documentation. ([61905](https://github.com/WordPress/gutenberg/pull/61905))
+
+
+## Contributors
+
+The following contributors merged PRs in this release:
+
+@aaronrobertshaw @aatanasovdev @afercia @ajlende @akasunil @amitraj2203 @artemiomorales @carolinan @cbravobernal @ciampo @creativecoder @DaniGuardiola @dilipbheda @ellatrix @fullofcaffeine @geriux @graylaurenm @gziolo @itzmekhokan @ivan-ottinger @jameskoster @jorgefilipecosta @juanmaguitar @kevin940726 @luisherranz @MaggieCabrera @matiasbenedetto @michakrapp @mirka @noisysocks @ntsekouras @oandregal @peterwilsoncc @ramonjd @sabernhardt @SantosGuillamot @saulyz @shail-mehta @sirreal @snehapatil2001 @spacedmonkey @stokesman @t-hamano @talldan @tellthemachines @up1512001 @vcanales @vipul0425 @westonruter @youknowriad
+
+
= 18.6.1 =
diff --git a/docs/contributors/code/scripts.md b/docs/contributors/code/scripts.md
index 1483a409a4d08f..bcbbdbabc15a1e 100644
--- a/docs/contributors/code/scripts.md
+++ b/docs/contributors/code/scripts.md
@@ -64,7 +64,7 @@ It is recommended to use the main `wp-polyfill` script handle which takes care o
| [Fetch Polyfill](https://www.npmjs.com/package/whatwg-fetch) | wp-polyfill-fetch | Polyfill that implements a subset of the standard Fetch specification |
| [Promise Polyfill](https://www.npmjs.com/package/promise-polyfill) | wp-polyfill-promise | Lightweight ES6 Promise polyfill for the browser and node |
| [Formdata Polyfill](https://www.npmjs.com/package/formdata-polyfill) | wp-polyfill-formdata | Polyfill conditionally replaces the native implementation |
-| [Node Contains Polyfill](https://polyfill.io) | wp-polyfill-node-contains | Polyfill for Node.contains |
+| [Node Contains Polyfill](https://www.npmjs.com/package/polyfill-library) | wp-polyfill-node-contains | Polyfill for Node.contains |
| [Element Closest Polyfill](https://www.npmjs.com/package/element-closest) | wp-polyfill-element-closest | Return the closest element matching a selector up the DOM tree |
## Bundling and code sharing
diff --git a/docs/reference-guides/interactivity-api/api-reference.md b/docs/reference-guides/interactivity-api/api-reference.md
index ba93e7fc529ebd..a898e437b40de8 100644
--- a/docs/reference-guides/interactivity-api/api-reference.md
+++ b/docs/reference-guides/interactivity-api/api-reference.md
@@ -531,7 +531,7 @@ The `unique-id` doesn't need to be unique globally. It just needs to be differen
See store used with the directive above
```js
-import { store, useState, useEffect } from '@wordpress/interactivity';
+import { getElement, store, useState, useEffect } from '@wordpress/interactivity';
// Unlike `data-wp-init` and `data-wp-watch`, you can use any hooks inside
// `data-wp-run` callbacks.
@@ -1071,7 +1071,7 @@ Those attributes will contain the directives of that element. In the button exam
```js
// store
-import { store, getContext } from '@wordpress/interactivity';
+import { store, getElement } from '@wordpress/interactivity';
store( "myPlugin", {
actions: {
diff --git a/gutenberg.php b/gutenberg.php
index 0edf6868f1aa04..2eb7a849f8731d 100644
--- a/gutenberg.php
+++ b/gutenberg.php
@@ -5,7 +5,7 @@
* Description: Printing since 1440. This is the development plugin for the block editor, site editor, and other future WordPress core functionality.
* Requires at least: 6.4
* Requires PHP: 7.2
- * Version: 18.6.1
+ * Version: 18.7.0-rc.1
* Author: Gutenberg Team
* Text Domain: gutenberg
*
diff --git a/lib/block-supports/block-style-variations.php b/lib/block-supports/block-style-variations.php
index 12c2453681b419..1c049f4a0fee58 100644
--- a/lib/block-supports/block-style-variations.php
+++ b/lib/block-supports/block-style-variations.php
@@ -274,19 +274,3 @@ function gutenberg_register_block_style_variations_from_theme_json_partials( $va
}
}
}
-
-// DO NOT BACKPORT TO CORE.
-// To be removed when core has backported this PR.
-if ( function_exists( 'wp_resolve_block_style_variations_from_styles_registry' ) ) {
- remove_filter( 'wp_theme_json_data_theme', 'wp_resolve_block_style_variations_from_styles_registry' );
-}
-if ( function_exists( 'wp_resolve_block_style_variations_from_primary_theme_json' ) ) {
- remove_filter( 'wp_theme_json_data_theme', 'wp_resolve_block_style_variations_from_primary_theme_json' );
-}
-if ( function_exists( 'wp_resolve_block_style_variations_from_theme_json_partials' ) ) {
- remove_filter( 'wp_theme_json_data_theme', 'wp_resolve_block_style_variations_from_theme_json_partials' );
-}
-if ( function_exists( 'wp_resolve_block_style_variations_from_theme_style_variation' ) ) {
- remove_filter( 'wp_theme_json_data_user', 'wp_resolve_block_style_variations_from_theme_style_variation' );
-}
-// END OF DO NOT BACKPORT TO CORE.
diff --git a/package-lock.json b/package-lock.json
index 2440b27e0f08ba..3725b111e4f3f4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "gutenberg",
- "version": "18.6.1",
+ "version": "18.7.0-rc.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "gutenberg",
- "version": "18.6.1",
+ "version": "18.7.0-rc.1",
"hasInstallScript": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -53078,7 +53078,7 @@
},
"packages/a11y": {
"name": "@wordpress/a11y",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53092,7 +53092,7 @@
},
"packages/annotations": {
"name": "@wordpress/annotations",
- "version": "3.1.0",
+ "version": "3.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53120,7 +53120,7 @@
},
"packages/api-fetch": {
"name": "@wordpress/api-fetch",
- "version": "7.1.0",
+ "version": "7.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53134,7 +53134,7 @@
},
"packages/autop": {
"name": "@wordpress/autop",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -53146,7 +53146,7 @@
},
"packages/babel-plugin-import-jsx-pragma": {
"name": "@wordpress/babel-plugin-import-jsx-pragma",
- "version": "5.1.0",
+ "version": "5.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"engines": {
@@ -53159,7 +53159,7 @@
},
"packages/babel-plugin-makepot": {
"name": "@wordpress/babel-plugin-makepot",
- "version": "6.1.0",
+ "version": "6.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -53177,7 +53177,7 @@
},
"packages/babel-preset-default": {
"name": "@wordpress/babel-preset-default",
- "version": "8.1.0",
+ "version": "8.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -53200,7 +53200,7 @@
},
"packages/base-styles": {
"name": "@wordpress/base-styles",
- "version": "5.1.0",
+ "version": "5.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"engines": {
@@ -53210,7 +53210,7 @@
},
"packages/blob": {
"name": "@wordpress/blob",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -53222,7 +53222,7 @@
},
"packages/block-directory": {
"name": "@wordpress/block-directory",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53258,7 +53258,7 @@
},
"packages/block-editor": {
"name": "@wordpress/block-editor",
- "version": "13.1.0",
+ "version": "13.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53372,7 +53372,7 @@
},
"packages/block-library": {
"name": "@wordpress/block-library",
- "version": "9.1.0",
+ "version": "9.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53438,7 +53438,7 @@
},
"packages/block-serialization-default-parser": {
"name": "@wordpress/block-serialization-default-parser",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -53450,7 +53450,7 @@
},
"packages/block-serialization-spec-parser": {
"name": "@wordpress/block-serialization-spec-parser",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"pegjs": "^0.10.0",
@@ -53463,7 +53463,7 @@
},
"packages/blocks": {
"name": "@wordpress/blocks",
- "version": "13.1.0",
+ "version": "13.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53516,7 +53516,7 @@
},
"packages/browserslist-config": {
"name": "@wordpress/browserslist-config",
- "version": "6.1.0",
+ "version": "6.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"engines": {
@@ -53526,7 +53526,7 @@
},
"packages/commands": {
"name": "@wordpress/commands",
- "version": "1.1.0",
+ "version": "1.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53551,7 +53551,7 @@
},
"packages/components": {
"name": "@wordpress/components",
- "version": "28.1.0",
+ "version": "28.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@ariakit/react": "^0.3.12",
@@ -53643,7 +53643,7 @@
},
"packages/compose": {
"name": "@wordpress/compose",
- "version": "7.1.0",
+ "version": "7.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53680,7 +53680,7 @@
},
"packages/core-commands": {
"name": "@wordpress/core-commands",
- "version": "1.1.0",
+ "version": "1.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53690,6 +53690,7 @@
"@wordpress/core-data": "file:../core-data",
"@wordpress/data": "file:../data",
"@wordpress/element": "file:../element",
+ "@wordpress/html-entities": "file:../html-entities",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/private-apis": "file:../private-apis",
@@ -53707,7 +53708,7 @@
},
"packages/core-data": {
"name": "@wordpress/core-data",
- "version": "7.1.0",
+ "version": "7.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53751,7 +53752,7 @@
},
"packages/create-block": {
"name": "@wordpress/create-block",
- "version": "4.44.0",
+ "version": "4.45.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -53779,7 +53780,7 @@
},
"packages/create-block-tutorial-template": {
"name": "@wordpress/create-block-tutorial-template",
- "version": "4.1.0",
+ "version": "4.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"engines": {
@@ -53789,7 +53790,7 @@
},
"packages/customize-widgets": {
"name": "@wordpress/customize-widgets",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53827,7 +53828,7 @@
},
"packages/data": {
"name": "@wordpress/data",
- "version": "10.1.0",
+ "version": "10.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53856,7 +53857,7 @@
},
"packages/data-controls": {
"name": "@wordpress/data-controls",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53874,7 +53875,7 @@
},
"packages/dataviews": {
"name": "@wordpress/dataviews",
- "version": "2.1.0",
+ "version": "2.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@ariakit/react": "^0.3.12",
@@ -53935,7 +53936,7 @@
},
"packages/date": {
"name": "@wordpress/date",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53950,7 +53951,7 @@
},
"packages/dependency-extraction-webpack-plugin": {
"name": "@wordpress/dependency-extraction-webpack-plugin",
- "version": "6.1.0",
+ "version": "6.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -53966,7 +53967,7 @@
},
"packages/deprecated": {
"name": "@wordpress/deprecated",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -53979,7 +53980,7 @@
},
"packages/docgen": {
"name": "@wordpress/docgen",
- "version": "2.1.0",
+ "version": "2.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54001,7 +54002,7 @@
},
"packages/dom": {
"name": "@wordpress/dom",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54014,7 +54015,7 @@
},
"packages/dom-ready": {
"name": "@wordpress/dom-ready",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -54026,7 +54027,7 @@
},
"packages/e2e-test-utils": {
"name": "@wordpress/e2e-test-utils",
- "version": "11.1.0",
+ "version": "11.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54049,7 +54050,7 @@
},
"packages/e2e-test-utils-playwright": {
"name": "@wordpress/e2e-test-utils-playwright",
- "version": "1.1.0",
+ "version": "1.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54070,7 +54071,7 @@
},
"packages/e2e-tests": {
"name": "@wordpress/e2e-tests",
- "version": "8.1.0",
+ "version": "8.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54110,7 +54111,7 @@
},
"packages/edit-post": {
"name": "@wordpress/edit-post",
- "version": "8.1.0",
+ "version": "8.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54157,7 +54158,7 @@
},
"packages/edit-site": {
"name": "@wordpress/edit-site",
- "version": "6.1.0",
+ "version": "6.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54219,7 +54220,7 @@
},
"packages/edit-widgets": {
"name": "@wordpress/edit-widgets",
- "version": "6.1.0",
+ "version": "6.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54262,7 +54263,7 @@
},
"packages/editor": {
"name": "@wordpress/editor",
- "version": "14.1.0",
+ "version": "14.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54321,7 +54322,7 @@
},
"packages/element": {
"name": "@wordpress/element",
- "version": "6.1.0",
+ "version": "6.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54340,7 +54341,7 @@
},
"packages/env": {
"name": "@wordpress/env",
- "version": "10.1.0",
+ "version": "10.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54481,7 +54482,7 @@
},
"packages/escape-html": {
"name": "@wordpress/escape-html",
- "version": "3.1.0",
+ "version": "3.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -54493,7 +54494,7 @@
},
"packages/eslint-plugin": {
"name": "@wordpress/eslint-plugin",
- "version": "19.1.0",
+ "version": "19.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54536,7 +54537,7 @@
},
"packages/format-library": {
"name": "@wordpress/format-library",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54564,7 +54565,7 @@
},
"packages/hooks": {
"name": "@wordpress/hooks",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -54576,7 +54577,7 @@
},
"packages/html-entities": {
"name": "@wordpress/html-entities",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -54588,7 +54589,7 @@
},
"packages/i18n": {
"name": "@wordpress/i18n",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54608,7 +54609,7 @@
},
"packages/icons": {
"name": "@wordpress/icons",
- "version": "10.1.0",
+ "version": "10.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54622,7 +54623,7 @@
},
"packages/interactivity": {
"name": "@wordpress/interactivity",
- "version": "6.1.0",
+ "version": "6.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@preact/signals": "^1.2.2",
@@ -54636,7 +54637,7 @@
},
"packages/interactivity-router": {
"name": "@wordpress/interactivity-router",
- "version": "2.1.0",
+ "version": "2.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@wordpress/interactivity": "file:../interactivity"
@@ -54697,7 +54698,7 @@
},
"packages/interface": {
"name": "@wordpress/interface",
- "version": "6.1.0",
+ "version": "6.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54726,7 +54727,7 @@
},
"packages/is-shallow-equal": {
"name": "@wordpress/is-shallow-equal",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -54738,7 +54739,7 @@
},
"packages/jest-console": {
"name": "@wordpress/jest-console",
- "version": "8.1.0",
+ "version": "8.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54755,7 +54756,7 @@
},
"packages/jest-preset-default": {
"name": "@wordpress/jest-preset-default",
- "version": "12.1.0",
+ "version": "12.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54773,7 +54774,7 @@
},
"packages/jest-puppeteer-axe": {
"name": "@wordpress/jest-puppeteer-axe",
- "version": "7.1.0",
+ "version": "7.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54796,7 +54797,7 @@
},
"packages/keyboard-shortcuts": {
"name": "@wordpress/keyboard-shortcuts",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54814,7 +54815,7 @@
},
"packages/keycodes": {
"name": "@wordpress/keycodes",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54827,7 +54828,7 @@
},
"packages/lazy-import": {
"name": "@wordpress/lazy-import",
- "version": "2.1.0",
+ "version": "2.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -54842,7 +54843,7 @@
},
"packages/list-reusable-blocks": {
"name": "@wordpress/list-reusable-blocks",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54865,7 +54866,7 @@
},
"packages/media-utils": {
"name": "@wordpress/media-utils",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54881,7 +54882,7 @@
},
"packages/notices": {
"name": "@wordpress/notices",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54898,7 +54899,7 @@
},
"packages/npm-package-json-lint-config": {
"name": "@wordpress/npm-package-json-lint-config",
- "version": "5.1.0",
+ "version": "5.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"engines": {
@@ -54911,7 +54912,7 @@
},
"packages/nux": {
"name": "@wordpress/nux",
- "version": "9.1.0",
+ "version": "9.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54934,7 +54935,7 @@
},
"packages/patterns": {
"name": "@wordpress/patterns",
- "version": "2.1.0",
+ "version": "2.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54964,7 +54965,7 @@
},
"packages/plugins": {
"name": "@wordpress/plugins",
- "version": "7.1.0",
+ "version": "7.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -54987,7 +54988,7 @@
},
"packages/postcss-plugins-preset": {
"name": "@wordpress/postcss-plugins-preset",
- "version": "5.1.0",
+ "version": "5.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -55004,7 +55005,7 @@
},
"packages/postcss-themes": {
"name": "@wordpress/postcss-themes",
- "version": "6.1.0",
+ "version": "6.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"engines": {
@@ -55017,7 +55018,7 @@
},
"packages/preferences": {
"name": "@wordpress/preferences",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55043,7 +55044,7 @@
},
"packages/preferences-persistence": {
"name": "@wordpress/preferences-persistence",
- "version": "2.1.0",
+ "version": "2.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55056,7 +55057,7 @@
},
"packages/prettier-config": {
"name": "@wordpress/prettier-config",
- "version": "4.1.0",
+ "version": "4.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"engines": {
@@ -55069,7 +55070,7 @@
},
"packages/primitives": {
"name": "@wordpress/primitives",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55083,7 +55084,7 @@
},
"packages/priority-queue": {
"name": "@wordpress/priority-queue",
- "version": "3.1.0",
+ "version": "3.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55096,7 +55097,7 @@
},
"packages/private-apis": {
"name": "@wordpress/private-apis",
- "version": "1.1.0",
+ "version": "1.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -55108,7 +55109,7 @@
},
"packages/project-management-automation": {
"name": "@wordpress/project-management-automation",
- "version": "2.1.0",
+ "version": "2.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -55162,7 +55163,7 @@
},
"packages/react-i18n": {
"name": "@wordpress/react-i18n",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55318,7 +55319,7 @@
},
"packages/readable-js-assets-webpack-plugin": {
"name": "@wordpress/readable-js-assets-webpack-plugin",
- "version": "3.1.0",
+ "version": "3.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"engines": {
@@ -55331,7 +55332,7 @@
},
"packages/redux-routine": {
"name": "@wordpress/redux-routine",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55376,7 +55377,7 @@
},
"packages/reusable-blocks": {
"name": "@wordpress/reusable-blocks",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55403,7 +55404,7 @@
},
"packages/rich-text": {
"name": "@wordpress/rich-text",
- "version": "7.1.0",
+ "version": "7.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55427,7 +55428,7 @@
},
"packages/router": {
"name": "@wordpress/router",
- "version": "1.1.0",
+ "version": "1.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55446,7 +55447,7 @@
},
"packages/scripts": {
"name": "@wordpress/scripts",
- "version": "28.1.0",
+ "version": "28.2.0",
"dev": true,
"license": "GPL-2.0-or-later",
"dependencies": {
@@ -55832,7 +55833,7 @@
},
"packages/server-side-render": {
"name": "@wordpress/server-side-render",
- "version": "5.1.0",
+ "version": "5.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55858,7 +55859,7 @@
},
"packages/shortcode": {
"name": "@wordpress/shortcode",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55871,7 +55872,7 @@
},
"packages/style-engine": {
"name": "@wordpress/style-engine",
- "version": "2.1.0",
+ "version": "2.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55884,7 +55885,7 @@
},
"packages/stylelint-config": {
"name": "@wordpress/stylelint-config",
- "version": "22.1.0",
+ "version": "22.2.0",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -55901,7 +55902,7 @@
},
"packages/sync": {
"name": "@wordpress/sync",
- "version": "1.1.0",
+ "version": "1.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55922,7 +55923,7 @@
},
"packages/token-list": {
"name": "@wordpress/token-list",
- "version": "3.1.0",
+ "version": "3.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -55934,7 +55935,7 @@
},
"packages/undo-manager": {
"name": "@wordpress/undo-manager",
- "version": "1.1.0",
+ "version": "1.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55947,7 +55948,7 @@
},
"packages/url": {
"name": "@wordpress/url",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55960,7 +55961,7 @@
},
"packages/viewport": {
"name": "@wordpress/viewport",
- "version": "6.1.0",
+ "version": "6.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -55978,7 +55979,7 @@
},
"packages/warning": {
"name": "@wordpress/warning",
- "version": "3.1.0",
+ "version": "3.2.0",
"license": "GPL-2.0-or-later",
"engines": {
"node": ">=18.12.0",
@@ -55987,7 +55988,7 @@
},
"packages/widgets": {
"name": "@wordpress/widgets",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0",
@@ -56015,7 +56016,7 @@
},
"packages/wordcount": {
"name": "@wordpress/wordcount",
- "version": "4.1.0",
+ "version": "4.2.0",
"license": "GPL-2.0-or-later",
"dependencies": {
"@babel/runtime": "^7.16.0"
@@ -69039,6 +69040,7 @@
"@wordpress/core-data": "file:../core-data",
"@wordpress/data": "file:../data",
"@wordpress/element": "file:../element",
+ "@wordpress/html-entities": "file:../html-entities",
"@wordpress/i18n": "file:../i18n",
"@wordpress/icons": "file:../icons",
"@wordpress/private-apis": "file:../private-apis",
diff --git a/package.json b/package.json
index 9b025db89016ab..ea2e441ad758d7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "gutenberg",
- "version": "18.6.1",
+ "version": "18.7.0-rc.1",
"private": true,
"description": "A new WordPress editor experience.",
"author": "The WordPress Contributors",
diff --git a/packages/a11y/CHANGELOG.md b/packages/a11y/CHANGELOG.md
index 296d6771e3d1ad..d7098f67238bda 100644
--- a/packages/a11y/CHANGELOG.md
+++ b/packages/a11y/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 4.2.0 (2024-06-26)
+
## 4.1.0 (2024-06-15)
## 4.0.0 (2024-05-31)
diff --git a/packages/a11y/package.json b/packages/a11y/package.json
index a3c205af4905bb..0e9590381a290a 100644
--- a/packages/a11y/package.json
+++ b/packages/a11y/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/a11y",
- "version": "4.1.0",
+ "version": "4.2.0",
"description": "Accessibility (a11y) utilities for WordPress.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/annotations/CHANGELOG.md b/packages/annotations/CHANGELOG.md
index 884c7582d758b1..b92426072f1351 100644
--- a/packages/annotations/CHANGELOG.md
+++ b/packages/annotations/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 3.2.0 (2024-06-26)
+
## 3.1.0 (2024-06-15)
## 3.0.0 (2024-05-31)
diff --git a/packages/annotations/package.json b/packages/annotations/package.json
index 8b2013129ba062..2f030df0e6cb96 100644
--- a/packages/annotations/package.json
+++ b/packages/annotations/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/annotations",
- "version": "3.1.0",
+ "version": "3.2.0",
"description": "Annotate content in the Gutenberg editor.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/api-fetch/CHANGELOG.md b/packages/api-fetch/CHANGELOG.md
index 0d3ff564df08c4..6abbab65d6a821 100644
--- a/packages/api-fetch/CHANGELOG.md
+++ b/packages/api-fetch/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 7.2.0 (2024-06-26)
+
## 7.1.0 (2024-06-15)
## 7.0.0 (2024-05-31)
diff --git a/packages/api-fetch/package.json b/packages/api-fetch/package.json
index a245dcd9e9e236..112d5d8fb501d4 100644
--- a/packages/api-fetch/package.json
+++ b/packages/api-fetch/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/api-fetch",
- "version": "7.1.0",
+ "version": "7.2.0",
"description": "Utility to make WordPress REST API requests.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/autop/CHANGELOG.md b/packages/autop/CHANGELOG.md
index 0d6fd502670517..cfff0201fc277e 100644
--- a/packages/autop/CHANGELOG.md
+++ b/packages/autop/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 4.2.0 (2024-06-26)
+
## 4.1.0 (2024-06-15)
### Internal
diff --git a/packages/autop/package.json b/packages/autop/package.json
index dc2850c225b9a9..a232e196e3c241 100644
--- a/packages/autop/package.json
+++ b/packages/autop/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/autop",
- "version": "4.1.0",
+ "version": "4.2.0",
"description": "WordPress's automatic paragraph functions `autop` and `removep`.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/babel-plugin-import-jsx-pragma/CHANGELOG.md b/packages/babel-plugin-import-jsx-pragma/CHANGELOG.md
index fd7411280670f4..7bb25199ff8471 100644
--- a/packages/babel-plugin-import-jsx-pragma/CHANGELOG.md
+++ b/packages/babel-plugin-import-jsx-pragma/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 5.2.0 (2024-06-26)
+
## 5.1.0 (2024-06-15)
## 5.0.0 (2024-05-31)
diff --git a/packages/babel-plugin-import-jsx-pragma/package.json b/packages/babel-plugin-import-jsx-pragma/package.json
index 4069427e2266f0..88d09cecebf374 100644
--- a/packages/babel-plugin-import-jsx-pragma/package.json
+++ b/packages/babel-plugin-import-jsx-pragma/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/babel-plugin-import-jsx-pragma",
- "version": "5.1.0",
+ "version": "5.2.0",
"description": "Babel transform plugin for automatically injecting an import to be used as the pragma for the React JSX Transform plugin.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/babel-plugin-makepot/CHANGELOG.md b/packages/babel-plugin-makepot/CHANGELOG.md
index f6066a3b028eda..19214e1c791779 100644
--- a/packages/babel-plugin-makepot/CHANGELOG.md
+++ b/packages/babel-plugin-makepot/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 6.2.0 (2024-06-26)
+
## 6.1.0 (2024-06-15)
## 6.0.0 (2024-05-31)
diff --git a/packages/babel-plugin-makepot/package.json b/packages/babel-plugin-makepot/package.json
index 6e0f58ed11f21f..1ff539297bddb2 100644
--- a/packages/babel-plugin-makepot/package.json
+++ b/packages/babel-plugin-makepot/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/babel-plugin-makepot",
- "version": "6.1.0",
+ "version": "6.2.0",
"description": "WordPress Babel internationalization (i18n) plugin.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/babel-preset-default/CHANGELOG.md b/packages/babel-preset-default/CHANGELOG.md
index 3d6abcf94784ff..56b58422f47f35 100644
--- a/packages/babel-preset-default/CHANGELOG.md
+++ b/packages/babel-preset-default/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 8.2.0 (2024-06-26)
+
## 8.1.0 (2024-06-15)
## 8.0.0 (2024-05-31)
diff --git a/packages/babel-preset-default/package.json b/packages/babel-preset-default/package.json
index 6e7f46a6480eb1..6a44e479bd02bd 100644
--- a/packages/babel-preset-default/package.json
+++ b/packages/babel-preset-default/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/babel-preset-default",
- "version": "8.1.0",
+ "version": "8.2.0",
"description": "Default Babel preset for WordPress development.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/base-styles/CHANGELOG.md b/packages/base-styles/CHANGELOG.md
index 9da665ba27209a..89149ee5044f7a 100644
--- a/packages/base-styles/CHANGELOG.md
+++ b/packages/base-styles/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 5.2.0 (2024-06-26)
+
## 5.1.0 (2024-06-15)
## 5.0.0 (2024-05-31)
diff --git a/packages/base-styles/package.json b/packages/base-styles/package.json
index 7d0f3abb46f421..b573693574d828 100644
--- a/packages/base-styles/package.json
+++ b/packages/base-styles/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/base-styles",
- "version": "5.1.0",
+ "version": "5.2.0",
"description": "Base SCSS utilities and variables for WordPress.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/blob/CHANGELOG.md b/packages/blob/CHANGELOG.md
index 3950fa54c64d8a..c689b26bc5c8dc 100644
--- a/packages/blob/CHANGELOG.md
+++ b/packages/blob/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 4.2.0 (2024-06-26)
+
## 4.1.0 (2024-06-15)
### Internal
diff --git a/packages/blob/package.json b/packages/blob/package.json
index 335bf6cba82989..42b65ae434b21f 100644
--- a/packages/blob/package.json
+++ b/packages/blob/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/blob",
- "version": "4.1.0",
+ "version": "4.2.0",
"description": "Blob utilities for WordPress.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/block-directory/CHANGELOG.md b/packages/block-directory/CHANGELOG.md
index cfd5b50dcb7f1b..1aca119d864bea 100644
--- a/packages/block-directory/CHANGELOG.md
+++ b/packages/block-directory/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 5.2.0 (2024-06-26)
+
## 5.1.0 (2024-06-15)
## 5.0.0 (2024-05-31)
diff --git a/packages/block-directory/package.json b/packages/block-directory/package.json
index 2aea90812b7b7a..d62b4adb9c0dcb 100644
--- a/packages/block-directory/package.json
+++ b/packages/block-directory/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/block-directory",
- "version": "5.1.0",
+ "version": "5.2.0",
"description": "Extend editor with block directory features to search, download and install blocks.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/block-editor/CHANGELOG.md b/packages/block-editor/CHANGELOG.md
index 7b9fd378f2b0d8..969e057850f74a 100644
--- a/packages/block-editor/CHANGELOG.md
+++ b/packages/block-editor/CHANGELOG.md
@@ -2,6 +2,8 @@
## Unreleased
+## 13.2.0 (2024-06-26)
+
## 13.1.0 (2024-06-15)
## 13.0.0 (2024-05-31)
diff --git a/packages/block-editor/package.json b/packages/block-editor/package.json
index 22bca4dc5c310a..7e16ca0e3f6f0f 100644
--- a/packages/block-editor/package.json
+++ b/packages/block-editor/package.json
@@ -1,6 +1,6 @@
{
"name": "@wordpress/block-editor",
- "version": "13.1.0",
+ "version": "13.2.0",
"description": "Generic block editor.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
diff --git a/packages/block-editor/src/components/block-breadcrumb/index.js b/packages/block-editor/src/components/block-breadcrumb/index.js
index b1fd13dbf3475a..70f038181237b4 100644
--- a/packages/block-editor/src/components/block-breadcrumb/index.js
+++ b/packages/block-editor/src/components/block-breadcrumb/index.js
@@ -12,6 +12,8 @@ import { chevronRightSmall, Icon } from '@wordpress/icons';
import BlockTitle from '../block-title';
import { store as blockEditorStore } from '../../store';
import { unlock } from '../../lock-unlock';
+import { __unstableUseBlockRef as useBlockRef } from '../block-list/use-block-props/use-block-refs';
+import getEditorRegion from '../../utils/get-editor-region';
/**
* Block breadcrumb component, displaying the hierarchy of the current block selection as a breadcrumb.
@@ -37,6 +39,10 @@ function BlockBreadcrumb( { rootLabelText } ) {
}, [] );
const rootLabel = rootLabelText || __( 'Document' );
+ // We don't care about this specific ref, but this is a way
+ // to get a ref within the editor canvas so we can focus it later.
+ const blockRef = useBlockRef( clientId );
+
/*
* Disable reason: The `list` ARIA role is redundant but
* Safari+VoiceOver won't announce the list otherwise.
@@ -60,7 +66,16 @@ function BlockBreadcrumb( { rootLabelText } ) {
diff --git a/packages/block-editor/src/components/block-lock/modal.js b/packages/block-editor/src/components/block-lock/modal.js
index cfafa6c031bbd1..11a03c5aff4dd8 100644
--- a/packages/block-editor/src/components/block-lock/modal.js
+++ b/packages/block-editor/src/components/block-lock/modal.js
@@ -13,7 +13,6 @@ import {
ToggleControl,
} from '@wordpress/components';
import { lock as lockIcon, unlock as unlockIcon } from '@wordpress/icons';
-import { useInstanceId } from '@wordpress/compose';
import { useDispatch, useSelect } from '@wordpress/data';
import { getBlockType } from '@wordpress/blocks';
@@ -64,10 +63,6 @@ export default function BlockLockModal( { clientId, onClose } ) {
);
const { updateBlockAttributes } = useDispatch( blockEditorStore );
const blockInformation = useBlockDisplayInformation( clientId );
- const instanceId = useInstanceId(
- BlockLockModal,
- 'block-editor-block-lock-modal__options-title'
- );
useEffect( () => {
setLock( {
@@ -90,11 +85,6 @@ export default function BlockLockModal( { clientId, onClose } ) {
overlayClassName="block-editor-block-lock-modal"
onRequestClose={ onClose }
>
-
- { __(
- 'Choose specific attributes to restrict or lock all available options.'
- ) }
-