Skip to content

Commit a3fa65d

Browse files
desrosjSteelWagstaff
authored andcommitted
General: Bump the pinned hash for Gutenberg to v22.9.0.
This updates the pinned commit hash of the Gutenberg repository from `3166ad3c587b4091f77b0e16affeed5762e193f1` (version `22.8.0`) to `5426109cdaf45828ef28ff8527d7d38e7e75fe74` (version `22.9.0`). A full list of changes included in this commit can be found on GitHub: https://github.com/WordPress/gutenberg/compare/v22.8.0..v22.9.0. The following commits are included: - Real Time Collaboration: Introduce filters for the polling intervals. (WordPress/gutenberg#76518) - UI: Update @base-ui/react from 1.2.0 to 1.3.0 (WordPress/gutenberg#76603) - Card: Use Text component for Title typography (WordPress/gutenberg#76642) - Add TypeScript parser tests for shouldSkipReference (WordPress/gutenberg#76611) - Update changelog link for pull request 11276 (WordPress/gutenberg#76638) - ThemeProvider: Add `cursor` prop (WordPress/gutenberg#76410) - RTC: Fix RichTextData deserialization (WordPress/gutenberg#76607) - Cross Origin Isolation: Remove `img` from the list of elements that get mutated (WordPress/gutenberg#76618) - RTC: Scroll to collaborator on click (WordPress/gutenberg#76561) - Fix backport changelog filename (WordPress/gutenberg#76651) - Build: Skip non-minified build for WASM-inlined workers (WordPress/gutenberg#76615) - Improvements to dataviews infinite scroll (WordPress/gutenberg#74378) - Image/Site Logo: hide crop toolbar when editMediaEntity is unavailable (WordPress/gutenberg#76626) - Bump lodash from 4.17.21 to 4.17.23 in /platform-docs (WordPress/gutenberg#74829) - RTC: Change RTC option name (WordPress/gutenberg#76643) - Change from PR WordPress/gutenberg#11276 to WordPress/gutenberg#11234 with with different approach (WordPress/gutenberg#76661) - Build: Fix vips worker 404 when SCRIPT_DEBUG is true (WordPress/gutenberg#76657) - Build: Remove unused JXL WASM module from vips worker (WordPress/gutenberg#76639) - Storybook: disabled autodocs for Icon library (WordPress/gutenberg#76620) - Connectors: fix button size (WordPress/gutenberg#76582) - Revisions: Add Meta fields diff panel to document sidebar (WordPress/gutenberg#76341) - Reduce the added halo for selected block. (WordPress/gutenberg#76619) - Site Editor > Pages: move view config to the server (WordPress/gutenberg#76573) - ui/Tabs: add runtime validation for tab/panel mismatches (WordPress/gutenberg#75170) - Fix Color Picker Angle Reset on Gradient Type Change (WordPress/gutenberg#76595) - ESLint: Add `no-unmerged-classname` rule (WordPress/gutenberg#76458) - RTC: Backport race condition fix (WordPress/gutenberg#76649) - ui/Card: Add overflow: clip to root container (WordPress/gutenberg#76678) - Storybook: Make "introduction" top level (WordPress/gutenberg#76671) - Fix navigation block rendering unit test (WordPress/gutenberg#76685) - Hide Additional CSS controls when block is inside contentOnly editing mode (WordPress/gutenberg#76512) - RTC: Increase polling intervals, increase polling on primary room only (WordPress/gutenberg#76704) - Navigation: Avoid List View changing position when navigation block saves (WordPress/gutenberg#76659) - Fix navigation block unit test and e2e test (WordPress/gutenberg#76692) - Stretchy Text: Fix focus loss (WordPress/gutenberg#75092) - Fix locked content when switching to a different template without exiting 'Edit pattern' (WordPress/gutenberg#76710) - Guidelines: Improvements to the UX (WordPress/gutenberg#76383) - Fix: Create custom template modal content width (WordPress/gutenberg#76713) - Core Data: Optimize getRawEntityRecord selector (WordPress/gutenberg#76632) - Metabox: Fix checkbox style in sidebar (WordPress/gutenberg#76718) - Stop keeping stale controlled blocks after reset (WordPress/gutenberg#76591) - Gate client-side media processing as plugin-only (WordPress/gutenberg#76700) - Storybook: Add redirect for moved introduction page (WordPress/gutenberg#76701) - InputControl: Add to @wordpress/ui (WordPress/gutenberg#76653) - UI Tooltip: Improve documentation to cover intended accessibility practices (WordPress/gutenberg#76705) - Add EmptyState component to @wordpress/ui (WordPress/gutenberg#74719) - RTC: Use activation hook to enable RTC by default (WordPress/gutenberg#76736) - Forms Block: Add hidden input field variation (WordPress/gutenberg#74131) - Guidelines: Refactor components and improve TypeScript typing (WordPress/gutenberg#76394) - Connectors: Align client-side registration API with server-side (WordPress/gutenberg#76737) - Properly resolve `getTemplateId` for hybrid themes (WordPress/gutenberg#76532) - Changelog: Add missing label-to-feature mappings (WordPress/gutenberg#76646) - Connectors: Support non-AI provider types and add JS extensibility e2e test (WordPress/gutenberg#76722) - Experimental: Add `template` panel to include the existing template actions (WordPress/gutenberg#76539) - RadioControl: Add `role="radiogroup"` to fieldset (WordPress/gutenberg#76745) - wp-build: Hash transformed CSS for `data-wp-hash` dedupe key (WordPress/gutenberg#76743) - Button: restore specificity of high-contrast mode focus ring (WordPress/gutenberg#76719) - Updating versions in WordPress ahead of 7.0 (WordPress/gutenberg#76723) - Bump the github-actions group across 2 directories with 1 update (WordPress/gutenberg#76681) - Admin UI: Add CSS files to sideEffects array (WordPress/gutenberg#76609) - RTC: Add E2E "stress test" with complex interactions (WordPress/gutenberg#76055) - Connectors: Improve AI plugin button (WordPress/gutenberg#76759) - Login/out block: Add button block class names to the submit button (WordPress/gutenberg#76746) - Commands: Add sections to command palette and introduce Recently used functionality (WordPress/gutenberg#75691) - RTC: Use prepared queries instead of `*_post_meta` functions (WordPress/gutenberg#76779) - Core Abilities: fix sideEffects flag (WordPress/gutenberg#76763) - Site Editor > Patterns: move config to the server (WordPress/gutenberg#76734) - Docs: Remove Puppeteer references and update to Playwright (WordPress/gutenberg#76766) - Site Editor > Templates: move config to the server (WordPress/gutenberg#76622) - Core Data: Remove 'isRawAttribute' internal util (WordPress/gutenberg#76806) - Reset blockEditingModes on RESET_BLOCKS (WordPress/gutenberg#76529) - Refactor: Use null coalescing operator for improved readability (WordPress/gutenberg#76777) - ui/CollapsibleCard: do not animate focus ring (WordPress/gutenberg#76682) - admin-ui / Breadcrumbs: stricter `items[].to` prop types (WordPress/gutenberg#76493) - RTC: Remove stale wp_enable_real_time_collaboration option check (WordPress/gutenberg#76810) - Storybook: Try changing to collapsed folders (WordPress/gutenberg#76361) - @wordpress/dataviews: migrate card layout to @wordpress/ui (WordPress/gutenberg#76282) - RTC: Fix editor freeze when replacing code editor content (WordPress/gutenberg#76815) - Preferences: Hide collaboration options when RTC is not enabled (WordPress/gutenberg#76819) - Cherry-pick: Set milestone on PRs after cherry-picking to release branch (WordPress/gutenberg#76652) - Site Tagline: Fix block error when migrating deprecated textAlign attribute (WordPress/gutenberg#76821) - Commands: Fix unstable `useSelect` return value for `recentlyUsedNames` (WordPress/gutenberg#76822) - `ControlWithError`: Connect validation messages to controls via `aria-describedby` (WordPress/gutenberg#76742) - Block Editor: Deprecate '__unstableSaveReusableBlock' action (WordPress/gutenberg#76807) - Editor: Fix template revisions using 'modified' date field instead of 'date' (WordPress/gutenberg#76760) - UI: Clarify public APIs and component naming, remove NoticeIntent typings (WordPress/gutenberg#76791) - fix(date): Recover WP timezone after third-party moment-timezone reload (WordPress/gutenberg#75831) - Admin UI: Update Page background color (WordPress/gutenberg#76548) - Snackbar: Use surface-width design token for max-width (WordPress/gutenberg#76592) - iAPI Docs: Add client-side navigation compatibility guide (WordPress/gutenberg#76242) - Enhance block registration by using blocks-manifest for improved performance (WordPress/gutenberg#76317) - docs(create-block-interactive-template): document available variants in README (WordPress/gutenberg#76831) - Build: detect version and generate asset.php for vendor scripts (WordPress/gutenberg#76811) - Site Editor > Patterns & Parts: generate sidebar from view config (WordPress/gutenberg#76823) - Interactivity API: mention `client-side-navigation` scaffold variant in getting-started guide (WordPress/gutenberg#76543) - Fields: Add `excerpt` field (WordPress/gutenberg#76829) - Update PHP_CodeSniffer repository link and schema URL (WordPress/gutenberg#76816) - docs: Fix markdown links and PHP code block in client-side navigation compatibility guide (WordPress/gutenberg#76856) - Experimental: Add `revisions` panel (WordPress/gutenberg#76735) - WordPress/gutenberg#76478 Boot: Fix black area below content when sidebar is taller than page c… (WordPress/gutenberg#76764) - Style Book: Fix missing styles for classic themes in stylebook route (WordPress/gutenberg#76843) - UI/Dialog: Expose initialFocus and finalFocus on Dialog.Popup (WordPress/gutenberg#76860) - compose/useDialog: add `stopPropagation()` to Escape handler (WordPress/gutenberg#76861) - RTC: Add e2e block gauntlet (WordPress/gutenberg#76849) - UI: Add AlertDialog primitive (WordPress/gutenberg#76847) - RTC: Fix stuck "Join" link in post list when lock expires (WordPress/gutenberg#76795) - Site Editor: simplify sidebar for Pages & Templates (WordPress/gutenberg#76868) - Site Editor v2: Add missing menu items to navigation leaf more menu (WordPress/gutenberg#76804) - Navigation: Add a shared helper for font sizes in Navigation Link and Navigation Submenu blocks (WordPress/gutenberg#74855) - Reduce specificity of nav link default padding so global styles are applied (WordPress/gutenberg#76876) - Icon: Fix center alignment in the editor for classic themes (WordPress/gutenberg#76878) - RTC: Fix notes not syncing between collaborative editors (WordPress/gutenberg#76873) - List Item: Disable edit as HTML support (WordPress/gutenberg#76897) - Block Library: Show fallback label in MediaControl when filename is empty (WordPress/gutenberg#76888) - Image block media placeholder: remove duotone (WordPress/gutenberg#76721) - Latest Comments: Fix v1 deprecated block missing supports (WordPress/gutenberg#76877) - VIPS: ensure single instance (WordPress/gutenberg#76780) - React vendor script: avoid warning on createRoot (WordPress/gutenberg#76825) - Connectors: Add Akismet as a default connector (WordPress/gutenberg#76828) - Core Data: remove offset param from stableKey, use pagination logic (WordPress/gutenberg#76808) - Button: hide focus outline on :active for click feedback in forced-colors mode (WordPress/gutenberg#76833) - Restore with compaction update (WordPress/gutenberg#76872) - Theme: Change default control cursor to `pointer` (WordPress/gutenberg#76762) - E2E Tests: Enable client-side media processing for site editor image test (WordPress/gutenberg#76648) - ComboboxControl: Fix accessible association of `help` text (WordPress/gutenberg#76761) - Add backport for WP_ALLOW_COLLABORATION (WordPress/gutenberg#76716) - DataForm: Add `compact` configuration option to the `datetime` control (WordPress/gutenberg#76905) - Admin UI: Fix Page Header not rendering with only actions and add stories (WordPress/gutenberg#76695) - Improve JSDoc for abilities API (WordPress/gutenberg#76824) - DOM: Document class wildcard matcher for 'cleanNodeList' (WordPress/gutenberg#76920) - e2e: Add e2e tests for template and template part revisions (WordPress/gutenberg#76923) - react-dom vendor script: remove __esModule flag (WordPress/gutenberg#76925) - Site Editor: Fix unsupported theme flash on direct URL navigation (WordPress/gutenberg#76465) - Icons: Enforce strict name validation in `register` method (WordPress/gutenberg#76079) - ToggleGroupControl: Fix accessible association of `help` text (WordPress/gutenberg#76740) - Connectors: Replace plugin.slug with plugin.file (WordPress/gutenberg#76909) - UI/Dialog: deprioritize close icon for initial focus (WordPress/gutenberg#76910) - Block visibility badge: use canvas iframe for viewport detection (WordPress/gutenberg#76889) - Fields: Add `sticky` field (WordPress/gutenberg#76922) - DOM: Prefer standard `caretPositionFromPoint` over deprecated `caretRangeFromPoint` (WordPress/gutenberg#76921) - Block Supports: Add background gradient support that can combine with background images (WordPress/gutenberg#75859) - Tab Block: Remove anchor from save function (WordPress/gutenberg#76511) - CollapsibleCard: Add HeaderDescription subcomponent (WordPress/gutenberg#76867) - element: Make createInterpolateElement TS/type smart (WordPress/gutenberg#71513) - admin-ui: Update README to clarify purpose and distinguish from ui package (WordPress/gutenberg#76943) - Site Editor > Quick Edit: add form config to endpoint (WordPress/gutenberg#76953) - Fields: Tweak `excerpt` field (WordPress/gutenberg#76903) - Fix: Flaky RichText format e2e test (WordPress/gutenberg#76958) Props adamsilverstein, jorbin, westonruter, wildworks. Fixes #65556. git-svn-id: https://develop.svn.wordpress.org/trunk@62578 602fd350-edb4-49c9-b593-d223f7449a82
1 parent de4e235 commit a3fa65d

20 files changed

Lines changed: 329 additions & 265 deletions

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://develop.svn.wordpress.org/trunk"
88
},
99
"gutenberg": {
10-
"sha": "3166ad3c587b4091f77b0e16affeed5762e193f1",
10+
"sha": "5426109cdaf45828ef28ff8527d7d38e7e75fe74",
1111
"ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
1212
},
1313
"engines": {

‎src/wp-includes/assets/script-loader-packages.php‎

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
'wp-url',
101101
'wp-warning'
102102
),
103-
'version' => '3a14d64019e67a581568'
103+
'version' => 'bba5c1885d3a53871248'
104104
),
105105
'block-library.js' => array(
106106
'dependencies' => array(
@@ -142,7 +142,7 @@
142142
'import' => 'dynamic'
143143
)
144144
),
145-
'version' => '5449ab60eb22aaa1f668'
145+
'version' => '3510fa05eaf8c889edb7'
146146
),
147147
'block-serialization-default-parser.js' => array(
148148
'dependencies' => array(
@@ -175,7 +175,7 @@
175175
'wp-shortcode',
176176
'wp-warning'
177177
),
178-
'version' => '901495b507ad42be941e'
178+
'version' => '27318ac6d6f72eaf78ee'
179179
),
180180
'commands.js' => array(
181181
'dependencies' => array(
@@ -187,10 +187,11 @@
187187
'wp-element',
188188
'wp-i18n',
189189
'wp-keyboard-shortcuts',
190+
'wp-preferences',
190191
'wp-primitives',
191192
'wp-private-apis'
192193
),
193-
'version' => 'e3d8bba53f4ffea4fcd2'
194+
'version' => '8b8663311faa33540c1b'
194195
),
195196
'components.js' => array(
196197
'dependencies' => array(
@@ -214,7 +215,7 @@
214215
'wp-rich-text',
215216
'wp-warning'
216217
),
217-
'version' => '5415b6194c44da6987ba'
218+
'version' => 'dd1b4bbe0c8bd976151c'
218219
),
219220
'compose.js' => array(
220221
'dependencies' => array(
@@ -228,7 +229,7 @@
228229
'wp-priority-queue',
229230
'wp-undo-manager'
230231
),
231-
'version' => '81a6b4dad8bafab56102'
232+
'version' => '2b5a9d090a41c1120be7'
232233
),
233234
'core-commands.js' => array(
234235
'dependencies' => array(
@@ -266,7 +267,7 @@
266267
'wp-url',
267268
'wp-warning'
268269
),
269-
'version' => '2723b9b8cef3a26eac5e'
270+
'version' => '96a75292a48d3fca7f42'
270271
),
271272
'customize-widgets.js' => array(
272273
'dependencies' => array(
@@ -319,7 +320,7 @@
319320
'moment',
320321
'wp-deprecated'
321322
),
322-
'version' => 'c9f8e7dd3232716f34e9'
323+
'version' => '2faaf49020b2074de156'
323324
),
324325
'deprecated.js' => array(
325326
'dependencies' => array(
@@ -331,7 +332,7 @@
331332
'dependencies' => array(
332333
'wp-deprecated'
333334
),
334-
'version' => '66a6cf58e0c4cd128af0'
335+
'version' => '1acdd4ebd6969685a9d3'
335336
),
336337
'dom-ready.js' => array(
337338
'dependencies' => array(
@@ -430,7 +431,7 @@
430431
'import' => 'static'
431432
)
432433
),
433-
'version' => 'beef8ec9558e9f14f5f5'
434+
'version' => 'e24eb77015e7b89ec57d'
434435
),
435436
'edit-widgets.js' => array(
436437
'dependencies' => array(
@@ -521,15 +522,15 @@
521522
'import' => 'static'
522523
)
523524
),
524-
'version' => 'b90a3f5c0a9b0a2fe692'
525+
'version' => '12f43831b63cbf5fd5e2'
525526
),
526527
'element.js' => array(
527528
'dependencies' => array(
528529
'react',
529530
'react-dom',
530531
'wp-escape-html'
531532
),
532-
'version' => '9d8168aa5622eac7f17a'
533+
'version' => '204b9776501c644953b6'
533534
),
534535
'escape-html.js' => array(
535536
'dependencies' => array(
@@ -636,15 +637,15 @@
636637
'wp-url',
637638
'wp-warning'
638639
),
639-
'version' => '63b8c642509adc7afa30'
640+
'version' => '02ec6a05ea6e6308bbef'
640641
),
641642
'notices.js' => array(
642643
'dependencies' => array(
643644
'react-jsx-runtime',
644645
'wp-components',
645646
'wp-data'
646647
),
647-
'version' => '503ec5a02578aed590d7'
648+
'version' => '9182f940c250945fb2d4'
648649
),
649650
'nux.js' => array(
650651
'dependencies' => array(
@@ -730,7 +731,7 @@
730731
'dependencies' => array(
731732

732733
),
733-
'version' => 'ecfdb1e08ae3f6ce27d1'
734+
'version' => 'd33c33dda9790dfcae63'
734735
),
735736
'react-i18n.js' => array(
736737
'dependencies' => array(
@@ -811,23 +812,23 @@
811812
'dependencies' => array(
812813

813814
),
814-
'version' => 'a59233ad9478f1a5b0c4'
815+
'version' => 'c9d9033f75b117821889'
815816
),
816817
'sync.js' => array(
817818
'dependencies' => array(
818819
'wp-api-fetch',
819820
'wp-hooks',
820821
'wp-private-apis'
821822
),
822-
'version' => '25e87dccd85c405f28c7'
823+
'version' => 'e0666bb035ab660755be'
823824
),
824825
'theme.js' => array(
825826
'dependencies' => array(
826827
'react-jsx-runtime',
827828
'wp-element',
828829
'wp-private-apis'
829830
),
830-
'version' => 'd707d5b6847d96124e02'
831+
'version' => '544f395a4bf1be7a7f82'
831832
),
832833
'token-list.js' => array(
833834
'dependencies' => array(

‎src/wp-includes/assets/script-modules-packages.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
'import' => 'static'
167167
)
168168
),
169-
'version' => 'ef4ac69a586a1281a620'
169+
'version' => '91e28c26a7994ed4332c'
170170
),
171171
'connectors/index.js' => array(
172172
'dependencies' => array(
@@ -177,7 +177,7 @@
177177
'wp-i18n',
178178
'wp-private-apis'
179179
),
180-
'version' => '70a0f074705f10920f9a'
180+
'version' => 'e973aa806299e3d70144'
181181
),
182182
'core-abilities/index.js' => array(
183183
'dependencies' => array(
@@ -273,7 +273,7 @@
273273
'wp-private-apis',
274274
'wp-style-engine'
275275
),
276-
'version' => '184e1479cff9c6206281'
276+
'version' => '65892b41e8d17dc72ead'
277277
),
278278
'route/index.js' => array(
279279
'dependencies' => array(
@@ -300,7 +300,7 @@
300300
'dependencies' => array(
301301

302302
),
303-
'version' => '61b86a5f5540ba666280'
303+
'version' => '21ff0ef0ab8315e42da9'
304304
),
305305
'workflow/index.js' => array(
306306
'dependencies' => array(
@@ -321,6 +321,6 @@
321321
'import' => 'static'
322322
)
323323
),
324-
'version' => '13556bc597bbf2a8d620'
324+
'version' => '8d5b553b2fcab74a6606'
325325
)
326326
);

‎src/wp-includes/blocks/blocks-json.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2875,8 +2875,10 @@
28752875
'background' => array(
28762876
'backgroundImage' => true,
28772877
'backgroundSize' => true,
2878+
'gradient' => true,
28782879
'__experimentalDefaultControls' => array(
2879-
'backgroundImage' => true
2880+
'backgroundImage' => true,
2881+
'gradient' => true
28802882
)
28812883
),
28822884
'color' => array(
@@ -3721,6 +3723,7 @@
37213723
),
37223724
'supports' => array(
37233725
'anchor' => true,
3726+
'html' => false,
37243727
'className' => false,
37253728
'splitting' => true,
37263729
'__experimentalBorder' => array(

‎src/wp-includes/blocks/group/block.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
"background": {
2929
"backgroundImage": true,
3030
"backgroundSize": true,
31+
"gradient": true,
3132
"__experimentalDefaultControls": {
32-
"backgroundImage": true
33+
"backgroundImage": true,
34+
"gradient": true
3335
}
3436
},
3537
"color": {

‎src/wp-includes/blocks/home-link.php‎

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* @package WordPress
66
*/
77

8+
require_once __DIR__ . '/navigation-link/shared/build-css-font-sizes.php';
9+
810
/**
911
* Build an array with CSS classes and inline styles defining the colors
1012
* which will be applied to the home link markup in the front-end.
@@ -59,36 +61,6 @@ function block_core_home_link_build_css_colors( $context ) {
5961
return $colors;
6062
}
6163

62-
/**
63-
* Build an array with CSS classes and inline styles defining the font sizes
64-
* which will be applied to the home link markup in the front-end.
65-
*
66-
* @since 6.0.0
67-
*
68-
* @param array $context Home link block context.
69-
* @return array Font size CSS classes and inline styles.
70-
*/
71-
function block_core_home_link_build_css_font_sizes( $context ) {
72-
// CSS classes.
73-
$font_sizes = array(
74-
'css_classes' => array(),
75-
'inline_styles' => '',
76-
);
77-
78-
$has_named_font_size = array_key_exists( 'fontSize', $context );
79-
$has_custom_font_size = isset( $context['style']['typography']['fontSize'] );
80-
81-
if ( $has_named_font_size ) {
82-
// Add the font size class.
83-
$font_sizes['css_classes'][] = sprintf( 'has-%s-font-size', $context['fontSize'] );
84-
} elseif ( $has_custom_font_size ) {
85-
// Add the custom font size inline style.
86-
$font_sizes['inline_styles'] = sprintf( 'font-size: %s;', $context['style']['typography']['fontSize'] );
87-
}
88-
89-
return $font_sizes;
90-
}
91-
9264
/**
9365
* Builds an array with classes and style for the li wrapper
9466
*
@@ -98,12 +70,21 @@ function block_core_home_link_build_css_font_sizes( $context ) {
9870
* @return string The li wrapper attributes.
9971
*/
10072
function block_core_home_link_build_li_wrapper_attributes( $context ) {
101-
$colors = block_core_home_link_build_css_colors( $context );
102-
$font_sizes = block_core_home_link_build_css_font_sizes( $context );
103-
$classes = array_merge(
73+
$colors = block_core_home_link_build_css_colors( $context );
74+
// The build system prefixes this function with "gutenberg_" to avoid
75+
// collisions with the core version. Until this function is backported to
76+
// core, we need to guard it's use and only call the prefixed name in
77+
// the plugin.
78+
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
79+
$font_sizes = gutenberg_block_core_shared_navigation_build_css_font_sizes( $context );
80+
} else {
81+
$font_sizes = block_core_shared_navigation_build_css_font_sizes( $context );
82+
}
83+
$classes = array_merge(
10484
$colors['css_classes'],
10585
$font_sizes['css_classes']
10686
);
87+
10788
$style_attribute = ( $colors['inline_styles'] . $font_sizes['inline_styles'] );
10889
$classes[] = 'wp-block-navigation-item';
10990

‎src/wp-includes/blocks/list-item/block.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
},
2222
"supports": {
2323
"anchor": true,
24+
"html": false,
2425
"className": false,
2526
"splitting": true,
2627
"__experimentalBorder": {

‎src/wp-includes/blocks/loginout.php‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,19 @@ function render_block_core_loginout( $attributes ) {
3838

3939
// Get the form.
4040
$contents = wp_login_form( array( 'echo' => false ) );
41+
42+
if ( wp_is_block_theme() ) {
43+
$processor = new WP_HTML_Tag_Processor( $contents );
44+
45+
while ( $processor->next_tag( 'input' ) ) {
46+
if ( 'submit' === $processor->get_attribute( 'type' ) && 'wp-submit' === $processor->get_attribute( 'name' ) ) {
47+
$processor->add_class( 'wp-block-button__link' );
48+
$processor->add_class( wp_theme_get_element_class_name( 'button' ) );
49+
$contents = $processor->get_updated_html();
50+
break;
51+
}
52+
}
53+
}
4154
}
4255

4356
$wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) );

0 commit comments

Comments
 (0)