Skip to content

Commit c59114f

Browse files
committed
Restore: Sync Gutenberg @ 59a08c5496008ca88f4b6b86f38838c3612d88c8
See changelog in f8b2285 > Gutenberg ref update. > Updates unit tests to account for: > - "Dynamically add CSS class to Paragraph block" (WordPress/gutenberg#71207) > - New block server-side block registrations. git-svn-id: https://develop.svn.wordpress.org/branches/fixes-64393-restore-version-history@62122 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 88cb699 commit c59114f

165 files changed

Lines changed: 37043 additions & 35840 deletions

File tree

Some content is hidden

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

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

Lines changed: 61 additions & 66 deletions
Large diffs are not rendered by default.

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

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'wp-data',
1111
'wp-i18n'
1212
),
13-
'version' => 'bd07cd6be9d3678c2a45'
13+
'version' => '84b615d3da8fc36f7bba'
1414
),
1515
'block-editor/utils/fit-text-frontend.min.js' => array(
1616
'dependencies' => array(
@@ -22,7 +22,7 @@
2222
'import' => 'static'
2323
)
2424
),
25-
'version' => '2f00eb94b5ef309f39eb'
25+
'version' => '383c7a8bd24a1f2fd9b9'
2626
),
2727
'block-library/accordion/view.min.js' => array(
2828
'dependencies' => array(
@@ -76,7 +76,19 @@
7676
'import' => 'static'
7777
)
7878
),
79-
'version' => '7437ed5c45ee57daf02c'
79+
'version' => '243a659f91c3dc9841c7'
80+
),
81+
'block-library/playlist/view.min.js' => array(
82+
'dependencies' => array(
83+
84+
),
85+
'module_dependencies' => array(
86+
array(
87+
'id' => '@wordpress/interactivity',
88+
'import' => 'static'
89+
)
90+
),
91+
'version' => '99f747d731f80246db11'
8092
),
8193
'block-library/query/view.min.js' => array(
8294
'dependencies' => array(
@@ -151,7 +163,7 @@
151163
'import' => 'static'
152164
)
153165
),
154-
'version' => '9f051020d6920e221d19'
166+
'version' => '393df8e867821909c8d1'
155167
),
156168
'core-abilities/index.min.js' => array(
157169
'dependencies' => array(
@@ -164,7 +176,7 @@
164176
'import' => 'static'
165177
)
166178
),
167-
'version' => '336043fa59033fb5e9b0'
179+
'version' => '7cd8fe3a80dded97579b'
168180
),
169181
'edit-site-init/index.min.js' => array(
170182
'dependencies' => array(
@@ -179,13 +191,13 @@
179191
'import' => 'static'
180192
)
181193
),
182-
'version' => '86ba14602c8af2333ca2'
194+
'version' => '4e68db4d9b7e04149623'
183195
),
184196
'interactivity/index.min.js' => array(
185197
'dependencies' => array(
186198

187199
),
188-
'version' => '771756b5dd00167d1664'
200+
'version' => '1bdeb1de58ef5e7f2d9a'
189201
),
190202
'interactivity-router/full-page.min.js' => array(
191203
'dependencies' => array(
@@ -213,7 +225,7 @@
213225
'import' => 'static'
214226
)
215227
),
216-
'version' => 'bb48ce8e3364d5290463'
228+
'version' => '41d77cc6c9cf22c6d225'
217229
),
218230
'latex-to-mathml/index.min.js' => array(
219231
'dependencies' => array(
@@ -247,7 +259,7 @@
247259
'wp-private-apis',
248260
'wp-style-engine'
249261
),
250-
'version' => 'fcf90385d27a3a94e0a6'
262+
'version' => '9750cba8a806aa170cf4'
251263
),
252264
'route/index.min.js' => array(
253265
'dependencies' => array(
@@ -256,7 +268,7 @@
256268
'react-jsx-runtime',
257269
'wp-private-apis'
258270
),
259-
'version' => '333002943024efaa0bcc'
271+
'version' => 'c5843b6c5e84b352f43b'
260272
),
261273
'workflow/index.min.js' => array(
262274
'dependencies' => array(
@@ -277,6 +289,6 @@
277289
'import' => 'static'
278290
)
279291
),
280-
'version' => '222192b99efc1eb0b5b2'
292+
'version' => 'b13cf70abfb06f4289ef'
281293
)
282294
);

src/wp-includes/blocks/accordion-item/block.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
"default": false
5656
}
5757
},
58+
"providesContext": {
59+
"core/accordion-open-by-default": "openByDefault"
60+
},
5861
"textdomain": "default",
5962
"style": "wp-block-accordion-item"
6063
}

src/wp-includes/blocks/accordion-panel/block.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"category": "design",
77
"description": "Contains the hidden or revealed content beneath the heading.",
88
"parent": [ "core/accordion-item" ],
9+
"usesContext": [ "core/accordion-open-by-default" ],
910
"supports": {
1011
"html": false,
1112
"color": {
@@ -60,14 +61,6 @@
6061
"type": [ "string", "boolean" ],
6162
"enum": [ "all", "insert", "contentOnly", false ],
6263
"default": false
63-
},
64-
"openByDefault": {
65-
"type": "boolean",
66-
"default": false
67-
},
68-
"isSelected": {
69-
"type": "boolean",
70-
"default": false
7164
}
7265
},
7366
"textdomain": "default",

src/wp-includes/blocks/archives.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
function render_block_core_archives( $attributes ) {
2020
$show_post_count = ! empty( $attributes['showPostCounts'] );
21-
$type = isset( $attributes['type'] ) ? $attributes['type'] : 'monthly';
21+
$type = $attributes['type'] ?? 'monthly';
2222

2323
$class = 'wp-block-archives-list';
2424

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
}
2626
},
2727
"supports": {
28+
"anchor": true,
2829
"align": true,
2930
"__experimentalBorder": {
3031
"radius": true,
@@ -66,6 +67,5 @@
6667
"interactivity": {
6768
"clientNavigation": true
6869
}
69-
},
70-
"editorStyle": "wp-block-archives-editor"
70+
}
7171
}

src/wp-includes/blocks/avatar.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @return string Return the avatar.
1717
*/
1818
function render_block_core_avatar( $attributes, $content, $block ) {
19-
$size = isset( $attributes['size'] ) ? $attributes['size'] : 96;
19+
$size = $attributes['size'] ?? 96;
2020
$wrapper_attributes = get_block_wrapper_attributes();
2121
$border_attributes = get_block_core_avatar_border_attributes( $attributes );
2222

@@ -133,9 +133,9 @@ function get_block_core_avatar_border_attributes( $attributes ) {
133133
foreach ( $sides as $side ) {
134134
$border = $attributes['style']['border'][ $side ] ?? null;
135135
$border_styles[ $side ] = array(
136-
'color' => isset( $border['color'] ) ? $border['color'] : null,
137-
'style' => isset( $border['style'] ) ? $border['style'] : null,
138-
'width' => isset( $border['width'] ) ? $border['width'] : null,
136+
'color' => $border['color'] ?? null,
137+
'style' => $border['style'] ?? null,
138+
'width' => $border['width'] ?? null,
139139
);
140140
}
141141

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"usesContext": [ "postType", "postId", "commentId" ],
2727
"supports": {
28+
"anchor": true,
2829
"html": false,
2930
"align": true,
3031
"alignWide": false,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"renaming": false,
2727
"interactivity": {
2828
"clientNavigation": true
29-
}
29+
},
30+
"customCSS": false
3031
}
3132
}

0 commit comments

Comments
 (0)