Skip to content

Commit 41c4671

Browse files
desrosjKhushalSainS
authored andcommitted
General: Bump the pinned hash for Gutenberg to v23.0.0.
This updates the pinned commit hash of the Gutenberg repository from `5426109cdaf45828ef28ff8527d7d38e7e75fe74` (version `22.9.0`) to `7295bd91a3c2b64bb11dde0a12313210d9d16a12` (version `23.0.0`). A full list of changes included in this commit can be found on GitHub: https://github.com/WordPress/gutenberg/compare/v22.9.0..v23.0.0. The following commits are included: - Classify admin-ui and dataviews to components (WordPress/gutenberg#76959) - Add performance metrics for client-side media processing (WordPress/gutenberg#76792) - Connectors: Update help text from 'reset' to 'manage' (WordPress/gutenberg#76963) - Connectors: Hide Akismet unless already installed (WordPress/gutenberg#76962) - Remove unused catch block variables across the codebase (WordPress/gutenberg#76969) - Wrap sync update processing in try/catch (WordPress/gutenberg#76968) - Backport: Improve validation and permission checks for `WP_HTTP_Polling_Sync_Server` (WordPress/gutenberg#76987) - BlockMover: Remove unused disabled button props (WordPress/gutenberg#76993) - Core Data: Fix incorrect pagination for non-paginated entities (WordPress/gutenberg#76406) - Block Editor: Display shortcuts for moving blocks via tooltips (WordPress/gutenberg#76992) - Convert directories in test/ to workspaces (WordPress/gutenberg#74684) - RTC: Fix core/table cell merging (WordPress/gutenberg#76913) - Components: Extract the autocomplete matcher into a separate function (WordPress/gutenberg#76957) - Added Context for Next/Prev Enlarge Image (WordPress/gutenberg#76967) - Build Tools: Update TypeScript to 6.0.2 (WordPress/gutenberg#77010) - Text: Remove UA margins (WordPress/gutenberg#76970) - Fix pre-existing lint errors across the codebase (WordPress/gutenberg#77002) - Fix failing 'WP_HTTP_Polling_Sync_Server' unit test (WordPress/gutenberg#77025) - Card: Set default foreground color on root (WordPress/gutenberg#77013) - TypeScript: Migrate a11y package to TS (WordPress/gutenberg#70680) - Button: Remove unused Storybook story stylesheet (WordPress/gutenberg#77031) - Improve CSS setup instructions in package readmes (WordPress/gutenberg#76975) - Use Link component in details story example (WordPress/gutenberg#76997) - @wordpress/ui: Add global CSS defense module (WordPress/gutenberg#76783) - Autocompleters: Move and improve links search (WordPress/gutenberg#76995) - Autocomplete: Refactor useAutocomplete to use useReducer (WordPress/gutenberg#77020) - Components: Fix autocomplete overlapping trigger matching (WordPress/gutenberg#77018) - Fix: A sentence has no ending punctuation in README.md file. (WordPress/gutenberg#77027) - `ValidatedRangeControl`: Fix aria-label rendered as [object Object] (WordPress/gutenberg#77042) - HStack, VStack: Mark as not recommended for use (WordPress/gutenberg#77041) - Tests: Fix wp-env scripts not found in test workspaces (WordPress/gutenberg#77055) - Bump the github-actions group across 1 directory with 2 updates (WordPress/gutenberg#77030) - Autocomplete: Clarify 'isDebounced' setting limitation (WordPress/gutenberg#77062) - Fix SyntaxError in Autocompleter UI when pasting matching content (WordPress/gutenberg#76961) - Connectors: account for mu-plugins when resolving plugin.file status (WordPress/gutenberg#76994) - Storybook: Fix E2E subpath exports and add CI build smoke test (WordPress/gutenberg#77034) - Fix Storybook cursor Default option passing theme token (WordPress/gutenberg#77037) - Storybook: Enable theming toolbar for wp-components (WordPress/gutenberg#77038) - RTC: Fix "Edit as HTML" content reset during collaboration (WordPress/gutenberg#77043) - RTC: Fix inline inserter reset on update sync (WordPress/gutenberg#76980) - RTC: Predefined retry schedules for disconnect dialog, make more lenient (WordPress/gutenberg#76966) - Block Editor: Prevent Enter key from inserting paragraphs in contentOnly sections (WordPress/gutenberg#76989) - Editor: Fix 'selectedNote' action PHPDoc (WordPress/gutenberg#77080) - Tests: Fix argument forwarding for workspace test scripts (WordPress/gutenberg#77083) - Search block: Derive 'isSearchFieldHidden' value (WordPress/gutenberg#77082) - Cover block: fix embed video background Error 153 in editor (WordPress/gutenberg#76904) - Fields: Fix `postContentInfoField` when there are edits (WordPress/gutenberg#76901) - Restore original template registration tests alongside activation variants (WordPress/gutenberg#77068) - i18n: Make sprintf return FormattedText for type-safe createInterpolateElement (WordPress/gutenberg#76974) - Block Editor store: refactor controlledInnerBlocks to Set (WordPress/gutenberg#77094) - DataForm: support disabled controls (WordPress/gutenberg#77090) - ESLint plugin: Disable `jsx-a11y/heading-has-content` (WordPress/gutenberg#77073) - Remove remaining esModuleInterop usage (WordPress/gutenberg#77095) - Avoid stale values in core/cover block for RTC compatibility (WordPress/gutenberg#76916) - RTC: Add optional `shouldSync` function to entity sync config (WordPress/gutenberg#76947) - Bump oras-project/setup-oras (WordPress/gutenberg#77096) - RTC: Change SyncConnectionModal to isSyncConnectionErrorHandled filter and drop IS_GUTENBERG_PLUGIN check (WordPress/gutenberg#76853) - RTC: Respect WP_ALLOW_COLLABORATION in Gutenberg for activation hook (WordPress/gutenberg#77084) - Add iteration issue template (WordPress/gutenberg#77113) - Media Modal Experiment: Set matching picker grid layout properties for when a user switches between layouts (WordPress/gutenberg#77118) - contentOnly template lock: Fix block insertion and removal rules (WordPress/gutenberg#77119) - Global Styles Revisions: Fix footer overflow (WordPress/gutenberg#77103) - updateBlockListSettings: convert state to Map, do all updates in one action (WordPress/gutenberg#46392) - DataViews: Fix `compact` density clipping and remove top/bottom padding (WordPress/gutenberg#77054) - Icons: Override WP_Icons_Registry singleton with Gutenberg icons registry (WordPress/gutenberg#76455) - Button: Remove obsolete Safari + VoiceOver workaround (WordPress/gutenberg#77107) - E2E Tests: Ensure artifacts generate correctly and remove unnecessary artifacts (WordPress/gutenberg#77093) - UI `Text`: Mark as recommended (WordPress/gutenberg#77044) - ui/AlertDialog: better async confirm APIs, fully use base ui's `AlertDialog` (WordPress/gutenberg#76937) - BlockStyleVariationOverridesWithConfig: change name and fix lint errors (WordPress/gutenberg#77130) - Add `.scss` files to CSS module linting (WordPress/gutenberg#77140) - BoxControl: remove unused state for icon side (WordPress/gutenberg#77143) - Fix overflow of Highlighted white-space in Code Block (WordPress/gutenberg#77085) - move pseudo-state slicing logic into useStyle hook (WordPress/gutenberg#77104) - Autocomplete: Remove getAutoCompleterUI factory pattern (WordPress/gutenberg#77048) - Add `date` field in templates and template parts (WordPress/gutenberg#77134) - Revisions: Simplify fetching (WordPress/gutenberg#77086) - Remove 'Home' and 'End' key usage from Navigation Tests (WordPress/gutenberg#77102) - Guidelines: Update actions-section and import/export workflow (WordPress/gutenberg#76621) - Image block: Hide drag handles while an upload is in progress (WordPress/gutenberg#77121) - Build: Fix glob ignore patterns in dot-prefixed directories (WordPress/gutenberg#75114) - Added missing documentation in `collaboration.php` (WordPress/gutenberg#77173) - `@wordpress/ui`: add `Popover` (WordPress/gutenberg#76438) - Add Site Tagline and Site Title to Design > Identity panel (WordPress/gutenberg#76264) - Revision: Fix 'Show changes' button reset state (WordPress/gutenberg#77122) - Components: update React function names for better ESLint detection (WordPress/gutenberg#77148) - Link picker: Decode HTML entities in link preview title (WordPress/gutenberg#77170) - MediaEdit: handle '*' wildcard in validateMimeType (WordPress/gutenberg#77168) - Search block : Match behaviour of global styling for border and color with local styling (inspector controls) to remove inconsistency (WordPress/gutenberg#77060) - Re-order spacing side controls when unlinked (WordPress/gutenberg#66317) - Dataviews: remove unneeded ref callbacks (WordPress/gutenberg#77179) - Experiment: Add revisions panel to templates, template parts and patterns (WordPress/gutenberg#77008) - Guidelines CPT: Changes slug from wp_content_guidelines to wp_guidelines (WordPress/gutenberg#77147) - TextArea: add disabled styles (WordPress/gutenberg#77129) - Writing Flow: Fix format toolbar not appearing when selecting text from block edge (WordPress/gutenberg#77136) - DataForm: Remove `text-transform` from `panel` field labels (WordPress/gutenberg#77196) - FormTokenField: fix disabled styles (WordPress/gutenberg#77137) - Admin UI: Increase page header vertical padding (WordPress/gutenberg#77152) - Use entity link title for link control preview (WordPress/gutenberg#77155) - TypeScript: migrate annotations package to TS (WordPress/gutenberg#70602) - refactor: migrate bin/api-docs to tools/api-docs as workspace `@wordpress/api-docs-generator` (WordPress/gutenberg#77019) - TypeScript: Migrate viewport package (WordPress/gutenberg#71118) - UI/Tooltip: Add usage guidelines documentation (WordPress/gutenberg#77158) - RadioControl: add support for disabling radio group (WordPress/gutenberg#77127) - Upgrade ESLint to v10 (WordPress/gutenberg#76654) - Add e2e test coverage for the Guidelines settings page (WordPress/gutenberg#77192) - Admin UI: Update Page background color to surface-neutral (WordPress/gutenberg#76869) - Fix lint-staged API docs path (WordPress/gutenberg#77203) - PresetInputControl: Fix clearing of numeric value in custom input control (WordPress/gutenberg#77139) - Upload external media: Ensure notice only fires once (WordPress/gutenberg#77218) - Checkbox: fix disabled styles (WordPress/gutenberg#77132) - FormToggle: Update disabled styles (WordPress/gutenberg#77208) - Calendar: fix disabled styles (WordPress/gutenberg#77138) - Textarea: remove unnecessary styles (WordPress/gutenberg#77221) - Search Block: Ensure color settings apply to input field when button is disabled (WordPress/gutenberg#77219) - iAPI Docs: Fix typos, code errors, and inaccuracies in the documentation (WordPress/gutenberg#76636) - Connectors: don't clobber third-party custom render in registerDefaultConnectors (WordPress/gutenberg#77116) - Guidelines: Improve guideline revision UX (WordPress/gutenberg#76560) - ui/`Dialog`: update Header layout, refactor Title to use Text (WordPress/gutenberg#77161) - ui/docs: add additional global css setup instructions (WordPress/gutenberg#77228) - ui/VisuallyHidden: Standardize composition pattern (WordPress/gutenberg#77190) - ui: expose `container` portal prop on all overlay Popup components (WordPress/gutenberg#77163) - Components: Use `--wpds-cursor-control` for interactive controls (Sass only) (WordPress/gutenberg#76786) - Card: Remove redundant margin reset from Card.Title (WordPress/gutenberg#77187) - Theme: Rename typography tokens to use "typography" prefix (WordPress/gutenberg#76912) - UI: Normalize render prop and ref forwarding patterns (WordPress/gutenberg#77160) - Ensure "Retry" button is stable during retries (WordPress/gutenberg#77234) - RTC: Improve array attribute stability when structural changes occur (WordPress/gutenberg#77164) - Env: Fix loopback requests when running on non-default ports (WordPress/gutenberg#77057) - Connectors: Replace speak() with notice store for state changes (WordPress/gutenberg#77174) - Core Data: Fix 'useEntityProp' for raw attributes (WordPress/gutenberg#77120) - Use image.copyMemory() for batch thumbnail generation (WordPress/gutenberg#76979) - Post Author Biography: Preserve occurance of white spaces (WordPress/gutenberg#71133) - Fix PatternsActions prop name from postType to type (WordPress/gutenberg#77251) - Resolve package-lock.json inconsistency for @babel/eslint-parser (WordPress/gutenberg#77256) - Fix duotone filter not applying on style variation switch (WordPress/gutenberg#77229) - Fix: restore editor canvas padding in classic themes (WordPress/gutenberg#76864) - DataViews: simplify `defaultLayouts` prop (WordPress/gutenberg#77232) - getMergedItemsIds: receive full page bigger than perPage (WordPress/gutenberg#77262) - FormTokenField: remove unnecessary styles (WordPress/gutenberg#77263) - TypeScript: Migrate `packages/list-reusable-blocks` package to TypeScript (WordPress/gutenberg#70518) - RTC: Add filterable flag for meta box RTC compatibility (WordPress/gutenberg#76939) - RTC: Fix disconnect dialog due to uneditable entity (WordPress/gutenberg#77242) - Guidelines: Try removing the jsxRuntime pragma and see what happens (WordPress/gutenberg#77255) - DataForm: Show tooltip in edit button in `panel` layout (WordPress/gutenberg#77024) - blocks: Convert blocks package to TypeScript (WordPress/gutenberg#76312) - Fix Gutenberg_REST_View_Config_Controller_7_1 PHP warnings (WordPress/gutenberg#77290) - renamed focus visible (WordPress/gutenberg#77292) - page.waitForFunction: fix call arguments (WordPress/gutenberg#77300) - Tabs: Simplify anchor handling (WordPress/gutenberg#77189) - Tests: Auto-fix some new 'eslint-plugin-playwright' warnings (WordPress/gutenberg#77314) - Tab Menu Item: simplify active tab menu item style (WordPress/gutenberg#77195) - Eslint: Suggest alternative in `no-setting-ds-tokens` rule (WordPress/gutenberg#77154) - Autocomplete: Fix flaky e2e tests (WordPress/gutenberg#77322) - UI: Update `@base-ui/react` from `1.3.0` to `1.4.0` (WordPress/gutenberg#77308) - Docs: Add README for DatePicker and TimePicker Components (WordPress/gutenberg#70365) - UI: use Text component for Badge typography (WordPress/gutenberg#77295) - Block Editor: Extract getElementCSSRules from useBlockProps (WordPress/gutenberg#77327) - Edit Post: Fix warning in 'useMetaBoxInitialization' hook (WordPress/gutenberg#77311) - Update the page slug we link to for the AI plugin after the plugin has been installed and activated (WordPress/gutenberg#77336) - Guidelines CPT: Rename references from content guidelines to guidelines (WordPress/gutenberg#77223) - Dialog: add explicit margin-inline-end rule to Title (WordPress/gutenberg#77334) - Remove sandbox `allow-same-origin` for core/html blocks (WordPress/gutenberg#77212) - Block Directory: Use `--wpds-cursor-control` design token (WordPress/gutenberg#77330) - Registers wp_guideline_type taxonomy (WordPress/gutenberg#77156) - DataForm: Add min/max date range support for date and datetime fields (WordPress/gutenberg#77201) - Separator Block: Apply default block variation when inserting via `---` shortcut (WordPress/gutenberg#77135) - Paragraph: Prevent `onEnter` splitting of parent block when insertion of that block type is not allowed (WordPress/gutenberg#77291) - Media Upload Modal: Persist view configuration (WordPress/gutenberg#77288) - Image block: Validate attachment ID exists before treating image as local (WordPress/gutenberg#77178) - Tabs: remove sequential numbering from new tab labels (WordPress/gutenberg#77321) - DataViews: Use `--wpds-cursor-control` design token for interactive controls (WordPress/gutenberg#77259) - Post Editor: Store metaboxes RTC-compatible flag on location entries (WordPress/gutenberg#77361) - Guidelines CPT: Skip registration when post type already exists (WordPress/gutenberg#77486) - RTC: Fixed orphaned meta causing dirty editor state (WordPress/gutenberg#77529) - Guidelines: Make the CPT type-aware (WordPress/gutenberg#77491) Props adamsilverstein, jorbin, westonruter, wildworks. Fixes #65557. git-svn-id: https://develop.svn.wordpress.org/trunk@62580 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c4cf2e0 commit 41c4671

16 files changed

Lines changed: 437 additions & 218 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": "5426109cdaf45828ef28ff8527d7d38e7e75fe74",
10+
"sha": "7295bd91a3c2b64bb11dde0a12313210d9d16a12",
1111
"ghcrRepo": "WordPress/gutenberg/gutenberg-wp-develop-build"
1212
},
1313
"engines": {

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'wp-i18n',
1414
'wp-rich-text'
1515
),
16-
'version' => '4b07d06c67c3b5ea590c'
16+
'version' => 'a97786de6f13be9c6637'
1717
),
1818
'api-fetch.js' => array(
1919
'dependencies' => array(
@@ -69,7 +69,6 @@
6969
'react-dom',
7070
'react-jsx-runtime',
7171
'wp-a11y',
72-
'wp-api-fetch',
7372
'wp-blob',
7473
'wp-block-serialization-default-parser',
7574
'wp-blocks',
@@ -100,7 +99,7 @@
10099
'wp-url',
101100
'wp-warning'
102101
),
103-
'version' => 'bba5c1885d3a53871248'
102+
'version' => '16b3af93a787b1379042'
104103
),
105104
'block-library.js' => array(
106105
'dependencies' => array(
@@ -142,7 +141,7 @@
142141
'import' => 'dynamic'
143142
)
144143
),
145-
'version' => '3510fa05eaf8c889edb7'
144+
'version' => '9a3a13b2420931623d63'
146145
),
147146
'block-serialization-default-parser.js' => array(
148147
'dependencies' => array(
@@ -175,7 +174,7 @@
175174
'wp-shortcode',
176175
'wp-warning'
177176
),
178-
'version' => '27318ac6d6f72eaf78ee'
177+
'version' => '6ed3c03f430c8984d1e1'
179178
),
180179
'commands.js' => array(
181180
'dependencies' => array(
@@ -215,7 +214,7 @@
215214
'wp-rich-text',
216215
'wp-warning'
217216
),
218-
'version' => 'dd1b4bbe0c8bd976151c'
217+
'version' => '97a7ddd1e1d999da982b'
219218
),
220219
'compose.js' => array(
221220
'dependencies' => array(
@@ -267,7 +266,7 @@
267266
'wp-url',
268267
'wp-warning'
269268
),
270-
'version' => '96a75292a48d3fca7f42'
269+
'version' => '98b022156a52c57830b3'
271270
),
272271
'customize-widgets.js' => array(
273272
'dependencies' => array(
@@ -305,7 +304,7 @@
305304
'wp-private-apis',
306305
'wp-redux-routine'
307306
),
308-
'version' => '827870cbde5326e4e88e'
307+
'version' => '180953b1a59424bb6718'
309308
),
310309
'data-controls.js' => array(
311310
'dependencies' => array(
@@ -382,7 +381,7 @@
382381
'import' => 'static'
383382
)
384383
),
385-
'version' => '012ef18791dcc2fc8895'
384+
'version' => '571c6840c1f95e154700'
386385
),
387386
'edit-site.js' => array(
388387
'dependencies' => array(
@@ -431,7 +430,7 @@
431430
'import' => 'static'
432431
)
433432
),
434-
'version' => 'e24eb77015e7b89ec57d'
433+
'version' => 'a886b2b87319828b24e3'
435434
),
436435
'edit-widgets.js' => array(
437436
'dependencies' => array(
@@ -522,7 +521,7 @@
522521
'import' => 'static'
523522
)
524523
),
525-
'version' => '12f43831b63cbf5fd5e2'
524+
'version' => '823ed6e13dfb89c3f89d'
526525
),
527526
'element.js' => array(
528527
'dependencies' => array(
@@ -578,7 +577,7 @@
578577
'dependencies' => array(
579578
'wp-hooks'
580579
),
581-
'version' => '781d11515ad3d91786ec'
580+
'version' => '125448662852c5e18937'
582581
),
583582
'is-shallow-equal.js' => array(
584583
'dependencies' => array(
@@ -611,7 +610,7 @@
611610
'wp-element',
612611
'wp-i18n'
613612
),
614-
'version' => 'd42cff283dbd5effd14c'
613+
'version' => 'a44da9be02cdfef6e44d'
615614
),
616615
'media-utils.js' => array(
617616
'dependencies' => array(
@@ -631,13 +630,14 @@
631630
'wp-i18n',
632631
'wp-keycodes',
633632
'wp-notices',
633+
'wp-preferences',
634634
'wp-primitives',
635635
'wp-private-apis',
636636
'wp-theme',
637637
'wp-url',
638638
'wp-warning'
639639
),
640-
'version' => '02ec6a05ea6e6308bbef'
640+
'version' => '9750aae5171fb20e5c17'
641641
),
642642
'notices.js' => array(
643643
'dependencies' => array(
@@ -776,7 +776,7 @@
776776
'wp-keycodes',
777777
'wp-private-apis'
778778
),
779-
'version' => '262898c1e2003840b59f'
779+
'version' => '1b3e411a54ef29d2bf7a'
780780
),
781781
'router.js' => array(
782782
'dependencies' => array(
@@ -820,15 +820,15 @@
820820
'wp-hooks',
821821
'wp-private-apis'
822822
),
823-
'version' => 'e0666bb035ab660755be'
823+
'version' => '5ff90a11bbb5def86790'
824824
),
825825
'theme.js' => array(
826826
'dependencies' => array(
827827
'react-jsx-runtime',
828828
'wp-element',
829829
'wp-private-apis'
830830
),
831-
'version' => '544f395a4bf1be7a7f82'
831+
'version' => 'abeb8783107aed891810'
832832
),
833833
'token-list.js' => array(
834834
'dependencies' => array(
@@ -859,21 +859,21 @@
859859
'import' => 'dynamic'
860860
)
861861
),
862-
'version' => 'd359c2cccf866d7082d2'
862+
'version' => 'e03397e1062511119cc5'
863863
),
864864
'url.js' => array(
865865
'dependencies' => array(
866866

867867
),
868-
'version' => 'bb0f766c3d2efe497871'
868+
'version' => '9dd5f16a5ce37bf4ba2c'
869869
),
870870
'viewport.js' => array(
871871
'dependencies' => array(
872-
'react-jsx-runtime',
873872
'wp-compose',
874-
'wp-data'
873+
'wp-data',
874+
'wp-element'
875875
),
876-
'version' => '8614025b8075d220d78f'
876+
'version' => '97845df4d1a7269c5c2b'
877877
),
878878
'warning.js' => array(
879879
'dependencies' => array(

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
'import' => 'static'
4747
)
4848
),
49-
'version' => '7d4d261d10dca47ebecb'
49+
'version' => 'a9114a756e418400594c'
5050
),
5151
'block-library/form/view.js' => array(
5252
'dependencies' => array(
@@ -166,7 +166,7 @@
166166
'import' => 'static'
167167
)
168168
),
169-
'version' => '91e28c26a7994ed4332c'
169+
'version' => '570068c474110f2ff13f'
170170
),
171171
'connectors/index.js' => array(
172172
'dependencies' => array(
@@ -177,7 +177,7 @@
177177
'wp-i18n',
178178
'wp-private-apis'
179179
),
180-
'version' => 'e973aa806299e3d70144'
180+
'version' => '274797868955a828dfdc'
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' => '65892b41e8d17dc72ead'
276+
'version' => 'fe96a6ab10a4550153ab'
277277
),
278278
'route/index.js' => array(
279279
'dependencies' => array(
@@ -300,7 +300,7 @@
300300
'dependencies' => array(
301301

302302
),
303-
'version' => '21ff0ef0ab8315e42da9'
303+
'version' => '34c388850fff0c80f78a'
304304
),
305305
'workflow/index.js' => array(
306306
'dependencies' => array(

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6995,10 +6995,6 @@
69956995
'default' => array(
69966996

69976997
)
6998-
),
6999-
'isSearchFieldHidden' => array(
7000-
'type' => 'boolean',
7001-
'default' => false
70026998
)
70036999
),
70047000
'supports' => array(
@@ -7049,7 +7045,11 @@
70497045
'html' => false
70507046
),
70517047
'editorStyle' => 'wp-block-search-editor',
7052-
'style' => 'wp-block-search'
7048+
'style' => 'wp-block-search',
7049+
'selectors' => array(
7050+
'color' => '.wp-block-search .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input',
7051+
'border' => '.wp-block-search.wp-block-search__button-outside .wp-block-search__input, .wp-block-search.wp-block-search__button-outside .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__button, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper'
7052+
)
70537053
),
70547054
'separator' => array(
70557055
'$schema' => 'https://schemas.wp.org/trunk/block.json',

src/wp-includes/blocks/image.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ function block_core_image_render_lightbox( $block_content, $block, $block_instan
205205
array(
206206
'defaultAriaLabel' => __( 'Enlarged image' ),
207207
'closeButtonText' => esc_html__( 'Close' ),
208-
'prevButtonText' => esc_html__( 'Previous' ),
209-
'nextButtonText' => esc_html__( 'Next' ),
208+
'prevButtonText' => esc_html_x( 'Previous', 'previous image in lightbox' ),
209+
'nextButtonText' => esc_html_x( 'Next', 'next image in lightbox' ),
210210
)
211211
);
212212

@@ -323,8 +323,8 @@ class="lightbox-trigger"
323323
function block_core_image_print_lightbox_overlay() {
324324
$dialog_label = esc_attr__( 'Enlarged images' );
325325
$close_button_text = esc_attr__( 'Close' );
326-
$prev_button_text = esc_attr__( 'Previous' );
327-
$next_button_text = esc_attr__( 'Next' );
326+
$prev_button_text = esc_attr_x( 'Previous', 'previous image in lightbox' );
327+
$next_button_text = esc_attr_x( 'Next', 'next image in lightbox' );
328328
$close_button_icon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true" focusable="false"><path d="m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"></path></svg>';
329329
$prev_button_icon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="28" height="28" aria-hidden="true" focusable="false"><path d="M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"></path></svg>';
330330
$next_button_icon = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="28" height="28" aria-hidden="true" focusable="false"><path d="M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"></path></svg>';

src/wp-includes/blocks/search.php

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ function render_block_core_search( $attributes ) {
6969
if ( ! empty( $typography_classes ) ) {
7070
$input_classes[] = $typography_classes;
7171
}
72+
if ( ! $show_button && ! empty( $color_classes ) ) {
73+
$input_classes[] = $color_classes;
74+
}
7275
if ( $input->next_tag() ) {
7376
$input->add_class( implode( ' ', $input_classes ) );
7477
$input->set_attribute( 'id', $input_id );
@@ -430,20 +433,37 @@ function styles_for_block_core_search( $attributes ) {
430433
}
431434
}
432435

436+
$use_input_for_colors = ! empty( $attributes['buttonPosition'] ) && 'no-button' === $attributes['buttonPosition'];
437+
433438
// Add color styles.
434439
$has_text_color = ! empty( $attributes['style']['color']['text'] );
435440
if ( $has_text_color ) {
436-
$button_styles[] = sprintf( 'color: %s;', $attributes['style']['color']['text'] );
441+
$text_color_style = sprintf( 'color: %s;', $attributes['style']['color']['text'] );
442+
if ( $use_input_for_colors ) {
443+
$input_styles[] = $text_color_style;
444+
} else {
445+
$button_styles[] = $text_color_style;
446+
}
437447
}
438448

439449
$has_background_color = ! empty( $attributes['style']['color']['background'] );
440450
if ( $has_background_color ) {
441-
$button_styles[] = sprintf( 'background-color: %s;', $attributes['style']['color']['background'] );
451+
$background_color_style = sprintf( 'background-color: %s;', $attributes['style']['color']['background'] );
452+
if ( $use_input_for_colors ) {
453+
$input_styles[] = $background_color_style;
454+
} else {
455+
$button_styles[] = $background_color_style;
456+
}
442457
}
443458

444459
$has_custom_gradient = ! empty( $attributes['style']['color']['gradient'] );
445460
if ( $has_custom_gradient ) {
446-
$button_styles[] = sprintf( 'background: %s;', $attributes['style']['color']['gradient'] );
461+
$custom_gradient_style = sprintf( 'background: %s;', $attributes['style']['color']['gradient'] );
462+
if ( $use_input_for_colors ) {
463+
$input_styles[] = $custom_gradient_style;
464+
} else {
465+
$button_styles[] = $custom_gradient_style;
466+
}
447467
}
448468

449469
// Get typography styles to be shared across inner elements.

src/wp-includes/blocks/search/block.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@
4242
"query": {
4343
"type": "object",
4444
"default": {}
45-
},
46-
"isSearchFieldHidden": {
47-
"type": "boolean",
48-
"default": false
4945
}
5046
},
5147
"supports": {
@@ -92,5 +88,9 @@
9288
"html": false
9389
},
9490
"editorStyle": "wp-block-search-editor",
95-
"style": "wp-block-search"
91+
"style": "wp-block-search",
92+
"selectors": {
93+
"color": ".wp-block-search .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input",
94+
"border": ".wp-block-search.wp-block-search__button-outside .wp-block-search__input, .wp-block-search.wp-block-search__button-outside .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__button, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper"
95+
}
9696
}

src/wp-includes/build/constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
*/
1010

1111
return array(
12-
'version' => '22.9.0',
12+
'version' => '23.0.0',
1313
'build_url' => includes_url( 'build/' ),
1414
);

0 commit comments

Comments
 (0)