Skip to content

Commit 7f2a0bf

Browse files
committed
Editor: Update npm packages.
Updates the editor npm packages to latest versions. See WordPress/wordpress-develop#6612. Props ellatrix, mukesh27, youknowriad, mamaduka. Built from https://develop.svn.wordpress.org/trunk@58187 git-svn-id: https://core.svn.wordpress.org/trunk@57650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 2f243f8 commit 7f2a0bf

381 files changed

Lines changed: 79222 additions & 81715 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.

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

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

wp-includes/blocks/archives.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/**
99
* Renders the `core/archives` block on server.
1010
*
11+
* @since 5.0.0
12+
*
1113
* @see WP_Widget_Archives
1214
*
1315
* @param array $attributes The block attributes.
@@ -106,6 +108,8 @@ function render_block_core_archives( $attributes ) {
106108

107109
/**
108110
* Register archives block.
111+
*
112+
* @since 5.0.0
109113
*/
110114
function register_block_core_archives() {
111115
register_block_type_from_metadata(

wp-includes/blocks/audio/theme-rtl.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
color:#ffffffa6;
88
}
99

10-
.wp-block-audio{
10+
:where(.wp-block-audio){
1111
margin:0 0 1em;
1212
}

wp-includes/blocks/audio/theme-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/audio/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
color:#ffffffa6;
88
}
99

10-
.wp-block-audio{
10+
:where(.wp-block-audio){
1111
margin:0 0 1em;
1212
}

wp-includes/blocks/audio/theme.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/avatar.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
/**
99
* Renders the `core/avatar` block on the server.
1010
*
11+
* @since 6.0.0
12+
*
1113
* @param array $attributes Block attributes.
1214
* @param string $content Block default content.
1315
* @param WP_Block $block Block instance.
@@ -31,7 +33,18 @@ function render_block_core_avatar( $attributes, $content, $block ) {
3133
: '';
3234

3335
if ( ! isset( $block->context['commentId'] ) ) {
34-
$author_id = isset( $attributes['userId'] ) ? $attributes['userId'] : get_post_field( 'post_author', $block->context['postId'] );
36+
if ( isset( $attributes['userId'] ) ) {
37+
$author_id = $attributes['userId'];
38+
} elseif ( isset( $block->context['postId'] ) ) {
39+
$author_id = get_post_field( 'post_author', $block->context['postId'] );
40+
} else {
41+
$author_id = get_query_var( 'author' );
42+
}
43+
44+
if ( empty( $author_id ) ) {
45+
return '';
46+
}
47+
3548
$author_name = get_the_author_meta( 'display_name', $author_id );
3649
// translators: %s is the Author name.
3750
$alt = sprintf( __( '%s Avatar' ), $author_name );
@@ -88,6 +101,8 @@ function render_block_core_avatar( $attributes, $content, $block ) {
88101
* Generates class names and styles to apply the border support styles for
89102
* the Avatar block.
90103
*
104+
* @since 6.3.0
105+
*
91106
* @param array $attributes The block attributes.
92107
* @return array The border-related classnames and styles for the block.
93108
*/
@@ -138,6 +153,8 @@ function get_block_core_avatar_border_attributes( $attributes ) {
138153

139154
/**
140155
* Registers the `core/avatar` block on the server.
156+
*
157+
* @since 6.0.0
141158
*/
142159
function register_block_core_avatar() {
143160
register_block_type_from_metadata(

wp-includes/blocks/block.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
/**
99
* Renders the `core/block` block on server.
1010
*
11+
* @since 5.0.0
12+
*
13+
* @global WP_Embed $wp_embed
14+
*
1115
* @param array $attributes The block attributes.
1216
*
1317
* @return string Rendered HTML of the referenced block.
@@ -95,6 +99,8 @@ function render_block_core_block( $attributes ) {
9599

96100
/**
97101
* Registers the `core/block` block.
102+
*
103+
* @since 5.3.0
98104
*/
99105
function register_block_core_block() {
100106
register_block_type_from_metadata(

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,9 @@
88
.edit-post-visual-editor .block-library-block__reusable-block-container .components-disabled .block-list-appender{
99
display:none;
1010
}
11-
12-
.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected{
13-
box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
14-
}
15-
.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
16-
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color);
11+
.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-highlighted:after,.edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.is-selected:after{
12+
outline-color:var(--wp-block-synced-color);
1713
}
1814
.is-dark-theme .edit-post-visual-editor .block-editor-block-list__block:not(.remove-outline).is-reusable.block-editor-block-list__block:not([contenteditable]):focus:after{
19-
box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
15+
outline-color:#fff;
2016
}

0 commit comments

Comments
 (0)