Skip to content

Commit 04092cb

Browse files
committed
Editor: Bump pinned hash for the Gutenberg repository.
This updates the pinned hash from the `gutenberg` from `9b8144036fa5faf75de43d4502ff9809fcf689ad` to `8c78d87453509661a9f28f978ba2c242d515563b`. The following changes are included: - Navigation Editor: Allow any blocks to be inserted by gating contentOnly insertion rules to section blocks (WordPress/gutenberg#76189) - Add `fetchpriority=low` to `IMG` tags in collapsed Details blocks (WordPress/gutenberg#76269) - Connectors: Add logo URL support for custom AI providers (WordPress/gutenberg#76190) - Cover Block: Add a playlist parameter to loop YouTube background videos. (WordPress/gutenberg#76004) - Connectors: Memoize getConnectors selector (WordPress/gutenberg#76339) - HTML Block: Fix broken layout (WordPress/gutenberg#76278) - Tests: Skip connector logo URL tests when AI Client is unavailable (WordPress/gutenberg#76343) - Navigation Overlay: Explicitly set fetchpriority for images (WordPress/gutenberg#76208) - Connectors: Show API key source for env vars and wp-config constants (WordPress/gutenberg#76355) - Connectors: Move API key validation and masking to REST dispatch level (WordPress/gutenberg#76327) - Connectors: Replace apiFetch with core-data store selectors (WordPress/gutenberg#76333) - Do not sync local attributes (WordPress/gutenberg#76267) - Add `fetchpriority=low` to `IMG` tags in collapsed Accordion Item blocks (WordPress/gutenberg#76336) - Implement disconnection debounce after initial connection (WordPress/gutenberg#76114) - Allow Post Content to be edited when 'Show template' is active and Post content is nested in a Template Part (WordPress/gutenberg#76305) - Fix: Document Bar: Back button flickers (WordPress/gutenberg#76320) - RTC: Move event hooks from editor to core-data (WordPress/gutenberg#76358) - fix(navigation): prevent right-justified submenu overflow in custom overlays (WordPress/gutenberg#76360) - Connectors: Add connectors registry for extensibility (WordPress/gutenberg#76364) - Connectors: Add empty state when no connectors are registered (WordPress/gutenberg#76375) - Temp: Disable RTC in the site editor (WordPress/gutenberg#76223) - Connectors: Add AI Experiments plugin callout with install/activate functionality (WordPress/gutenberg#76379) - Editor: Polish real-time collaboration presence UI and move Avatar to editor package (WordPress/gutenberg#75652) (WordPress/gutenberg#76365) - RTC: Add collaborator selection highlighting in rich text (WordPress/gutenberg#76107) - Sync changes from `wp_enqueue_global_styles()` to Gutenberg override (WordPress/gutenberg#76127) - [RTC] Fix performance regression on post save (WordPress/gutenberg#76370) - Media: Enable AVIF support for client-side uploads (WordPress/gutenberg#76371) - Connectors: Move plugin status computation to script module data (WordPress/gutenberg#76409) - Revisions: Skip rendered fields in REST API responses (WordPress/gutenberg#76347) - E2E Tests: Add connector setup flow tests with test AI provider (WordPress/gutenberg#76433) - RTC: Place sync connection modal in front of popover (WordPress/gutenberg#76431) - Connectors: Sync PHP code with WordPress Core (WordPress/gutenberg#76443) - Editor: Show own presence in collaborative editing sessions (WordPress/gutenberg#76413) (WordPress/gutenberg#76445) A full list of changes can be found on GitHub: https://github.com/WordPress/gutenberg/compare/9b8144036fa5faf75de43d4502ff9809fcf689ad…8c78d87453509661a9f28f978ba2c242d515563b. Log created with: git log --reverse --format="- %s" 9b8144036fa5faf75de43d4502ff9809fcf689ad..8c78d87453509661a9f28f978ba2c242d515563b | sed 's|#\([0-9][0-9]*\)|https://github.com/WordPress/gutenberg/pull/\1|g; /github\.com\/WordPress\/gutenberg\/pull/!d' | pbcopy See #64595. Built from https://develop.svn.wordpress.org/trunk@61988 git-svn-id: http://core.svn.wordpress.org/trunk@61270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 07202a2 commit 04092cb

80 files changed

Lines changed: 4827 additions & 3628 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
'wp-url',
101101
'wp-warning'
102102
),
103-
'version' => 'ca7e8cfd2cd06d8897bb'
103+
'version' => 'd803068b8e202e8ddcc9'
104104
),
105105
'block-library.min.js' => array(
106106
'dependencies' => array(
@@ -142,7 +142,7 @@
142142
'import' => 'dynamic'
143143
)
144144
),
145-
'version' => 'c2d339cfc3f518d7ae7d'
145+
'version' => '34fa1c224ed894b32e72'
146146
),
147147
'block-serialization-default-parser.min.js' => array(
148148
'dependencies' => array(
@@ -175,7 +175,7 @@
175175
'wp-shortcode',
176176
'wp-warning'
177177
),
178-
'version' => '043731fad526d26793c6'
178+
'version' => 'ef38e42500165bfda301'
179179
),
180180
'commands.min.js' => array(
181181
'dependencies' => array(
@@ -214,7 +214,7 @@
214214
'wp-rich-text',
215215
'wp-warning'
216216
),
217-
'version' => '0405cfa25ddf48f7c0f2'
217+
'version' => 'e778951c7b5eb4671d91'
218218
),
219219
'compose.min.js' => array(
220220
'dependencies' => array(
@@ -266,7 +266,7 @@
266266
'wp-url',
267267
'wp-warning'
268268
),
269-
'version' => 'f45e47fb68691ad2950f'
269+
'version' => '767b16974e5758002db2'
270270
),
271271
'customize-widgets.min.js' => array(
272272
'dependencies' => array(
@@ -377,7 +377,7 @@
377377
'import' => 'static'
378378
)
379379
),
380-
'version' => '8a4bb8684179cd65c841'
380+
'version' => '5eccb583f18c127f6b68'
381381
),
382382
'edit-site.min.js' => array(
383383
'dependencies' => array(
@@ -424,7 +424,7 @@
424424
'import' => 'static'
425425
)
426426
),
427-
'version' => 'f1371886f952c7d1e117'
427+
'version' => 'd2dda88d87840f09cc45'
428428
),
429429
'edit-widgets.min.js' => array(
430430
'dependencies' => array(
@@ -511,7 +511,7 @@
511511
'import' => 'static'
512512
)
513513
),
514-
'version' => 'f01d293e2d88336274ff'
514+
'version' => 'd6964395bb65759fe0ab'
515515
),
516516
'element.min.js' => array(
517517
'dependencies' => array(

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
'wp-url',
101101
'wp-warning'
102102
),
103-
'version' => 'ca7e8cfd2cd06d8897bb'
103+
'version' => 'd803068b8e202e8ddcc9'
104104
),
105105
'block-library.js' => array(
106106
'dependencies' => array(
@@ -142,7 +142,7 @@
142142
'import' => 'dynamic'
143143
)
144144
),
145-
'version' => 'c2d339cfc3f518d7ae7d'
145+
'version' => '34fa1c224ed894b32e72'
146146
),
147147
'block-serialization-default-parser.js' => array(
148148
'dependencies' => array(
@@ -175,7 +175,7 @@
175175
'wp-shortcode',
176176
'wp-warning'
177177
),
178-
'version' => '043731fad526d26793c6'
178+
'version' => 'ef38e42500165bfda301'
179179
),
180180
'commands.js' => array(
181181
'dependencies' => array(
@@ -214,7 +214,7 @@
214214
'wp-rich-text',
215215
'wp-warning'
216216
),
217-
'version' => '0405cfa25ddf48f7c0f2'
217+
'version' => 'e778951c7b5eb4671d91'
218218
),
219219
'compose.js' => array(
220220
'dependencies' => array(
@@ -266,7 +266,7 @@
266266
'wp-url',
267267
'wp-warning'
268268
),
269-
'version' => 'f45e47fb68691ad2950f'
269+
'version' => '767b16974e5758002db2'
270270
),
271271
'customize-widgets.js' => array(
272272
'dependencies' => array(
@@ -377,7 +377,7 @@
377377
'import' => 'static'
378378
)
379379
),
380-
'version' => '8a4bb8684179cd65c841'
380+
'version' => '5eccb583f18c127f6b68'
381381
),
382382
'edit-site.js' => array(
383383
'dependencies' => array(
@@ -424,7 +424,7 @@
424424
'import' => 'static'
425425
)
426426
),
427-
'version' => 'f1371886f952c7d1e117'
427+
'version' => 'd2dda88d87840f09cc45'
428428
),
429429
'edit-widgets.js' => array(
430430
'dependencies' => array(
@@ -511,7 +511,7 @@
511511
'import' => 'static'
512512
)
513513
),
514-
'version' => 'f01d293e2d88336274ff'
514+
'version' => 'd6964395bb65759fe0ab'
515515
),
516516
'element.js' => array(
517517
'dependencies' => array(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
'wp-i18n',
176176
'wp-private-apis'
177177
),
178-
'version' => 'bd74f3db1cc1555ee90d'
178+
'version' => '0db9a26c7920b6ab9f4a'
179179
),
180180
'core-abilities/index.min.js' => array(
181181
'dependencies' => array(
@@ -298,7 +298,7 @@
298298
'dependencies' => array(
299299

300300
),
301-
'version' => 'a742676bcc8809271cc6'
301+
'version' => '61b86a5f5540ba666280'
302302
),
303303
'workflow/index.min.js' => array(
304304
'dependencies' => array(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
'wp-i18n',
176176
'wp-private-apis'
177177
),
178-
'version' => 'bd74f3db1cc1555ee90d'
178+
'version' => '0db9a26c7920b6ab9f4a'
179179
),
180180
'core-abilities/index.js' => array(
181181
'dependencies' => array(
@@ -298,7 +298,7 @@
298298
'dependencies' => array(
299299

300300
),
301-
'version' => 'a742676bcc8809271cc6'
301+
'version' => '61b86a5f5540ba666280'
302302
),
303303
'workflow/index.js' => array(
304304
'dependencies' => array(

wp-includes/blocks/accordion-item.php

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
* @package WordPress
77
* @since 6.9.0
88
*
9-
* @param array $attributes The block attributes.
10-
* @param string $content The block content.
11-
*
9+
* @param array{ openByDefault: bool } $attributes The block attributes.
10+
* @param string $content The block content.
1211
* @return string Returns the updated markup.
1312
*/
14-
function block_core_accordion_item_render( $attributes, $content ) {
15-
if ( ! $content ) {
13+
function block_core_accordion_item_render( array $attributes, string $content ): string {
14+
if ( '' === $content ) {
1615
return $content;
1716
}
1817

@@ -56,6 +55,19 @@ function block_core_accordion_item_render( $attributes, $content ) {
5655
}
5756
}
5857

58+
/*
59+
* If an Accordion Item is collapsed by default, ensure any contained IMG has fetchpriority=low to deprioritize it
60+
* from contending with resources in the critical rendering path. In contrast, remove the loading attribute to
61+
* prevent the image from not being available when the item is expanded.
62+
*/
63+
if ( ! $attributes['openByDefault'] ) {
64+
$processor = new WP_HTML_Tag_Processor( $content );
65+
while ( $processor->next_tag( 'IMG' ) ) {
66+
$processor->set_attribute( 'fetchpriority', 'low' );
67+
}
68+
$content = $processor->get_updated_html();
69+
}
70+
5971
return $content;
6072
}
6173

wp-includes/blocks/cover.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ function render_block_core_cover( $attributes, $content ) {
6666
$query_params['controls'] = '0';
6767
$query_params['modestbranding'] = '1';
6868
$query_params['playsinline'] = '1';
69+
70+
// For loop to work, we need the playlist parameter.
71+
$path = $parsed_url['path'] ?? '';
72+
$path_segments = explode( '/', $path );
73+
$video_id = end( $path_segments );
74+
if ( $video_id ) {
75+
$query_params['playlist'] = $video_id;
76+
}
6977
} elseif ( 'vimeo' === $provider ) {
7078
$query_params['autoplay'] = '1';
7179
$query_params['muted'] = '1';

wp-includes/blocks/details.php

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?php
2+
/**
3+
* Server-side rendering of the `core/details` block.
4+
*
5+
* @package WordPress
6+
*/
7+
8+
/**
9+
* Sets fetchpriority="low" on all IMG tags within the collapsed Details block.
10+
*
11+
* Images in a collapsed Details block are hidden until the block is expanded, so they should
12+
* not compete with any resources in the critical rendering path, such as the LCP element image.
13+
*
14+
* @since 7.0.0
15+
*
16+
* @param string $block_content The block content.
17+
* @param array $block The full block, including name and attributes.
18+
* @return string Modified HTML with fetchpriority="low" on all IMG tags when the showContent attribute is false.
19+
*/
20+
function block_core_details_set_img_fetchpriority_low( $block_content, array $block ): string {
21+
if ( ! is_string( $block_content ) ) {
22+
return '';
23+
}
24+
25+
// If the Details block is open by default, short-circuit to let core add fetchpriority=high if appropriate.
26+
if ( $block['attrs']['showContent'] ?? false ) {
27+
return $block_content;
28+
}
29+
30+
$tags = new WP_HTML_Tag_Processor( $block_content );
31+
while ( $tags->next_tag( 'IMG' ) ) {
32+
$tags->set_attribute( 'fetchpriority', 'low' );
33+
}
34+
return $tags->get_updated_html();
35+
}
36+
37+
add_filter( 'render_block_core/details', 'block_core_details_set_img_fetchpriority_low', 10, 2 );
38+
39+
/**
40+
* Registers the `core/details` block on server.
41+
*
42+
* @since 7.0.0
43+
*/
44+
function register_block_core_details() {
45+
register_block_type_from_metadata( __DIR__ . '/details' );
46+
}
47+
add_action( 'init', 'register_block_core_details' );

wp-includes/blocks/html/editor-rtl.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,21 @@
9595
right: 0;
9696
}
9797

98-
.block-library-html__modal {
99-
height: 100%;
98+
@media (min-width: 600px) {
99+
.block-library-html__modal:not(.is-full-screen) {
100+
height: 9999rem;
101+
}
100102
}
101103
.block-library-html__modal .components-modal__children-container {
102104
height: 100%;
103105
}
104106

105107
.block-library-html__modal-tabs {
106-
overflow-y: auto;
108+
flex: 1;
107109
}
108110

109111
.block-library-html__modal-content {
110112
flex: 1;
111-
min-height: 0;
112113
}
113114

114115
.block-library-html__modal-tab {
@@ -148,7 +149,10 @@
148149
display: flex;
149150
align-items: center;
150151
justify-content: center;
151-
padding: 16px;
152-
flex: 1;
153152
min-height: 0;
153+
overflow-y: auto;
154+
flex: 1;
155+
}
156+
.block-library-html__preview iframe {
157+
height: 100%;
154158
}

wp-includes/blocks/html/editor-rtl.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wp-includes/blocks/html/editor.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,20 +95,21 @@
9595
left: 0;
9696
}
9797

98-
.block-library-html__modal {
99-
height: 100%;
98+
@media (min-width: 600px) {
99+
.block-library-html__modal:not(.is-full-screen) {
100+
height: 9999rem;
101+
}
100102
}
101103
.block-library-html__modal .components-modal__children-container {
102104
height: 100%;
103105
}
104106

105107
.block-library-html__modal-tabs {
106-
overflow-y: auto;
108+
flex: 1;
107109
}
108110

109111
.block-library-html__modal-content {
110112
flex: 1;
111-
min-height: 0;
112113
}
113114

114115
.block-library-html__modal-tab {
@@ -149,7 +150,10 @@
149150
display: flex;
150151
align-items: center;
151152
justify-content: center;
152-
padding: 16px;
153-
flex: 1;
154153
min-height: 0;
154+
overflow-y: auto;
155+
flex: 1;
156+
}
157+
.block-library-html__preview iframe {
158+
height: 100%;
155159
}

0 commit comments

Comments
 (0)