mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-04 03:51:38 +00:00
Editor: Update WordPress packages for 6.0 RC1.
Included cherry-picked commits from the Gutenberg plugin that fix bugs discovered after WordPress 6.0 Beta 4. Props gziolo, zieladam, ndiego. See #55567. git-svn-id: https://develop.svn.wordpress.org/trunk@53338 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Generated
+631
-303
File diff suppressed because it is too large
Load Diff
+18
-18
@@ -81,55 +81,55 @@
|
||||
"@wordpress/api-fetch": "6.3.1",
|
||||
"@wordpress/autop": "3.6.1",
|
||||
"@wordpress/blob": "3.6.1",
|
||||
"@wordpress/block-directory": "3.4.5",
|
||||
"@wordpress/block-editor": "8.5.4",
|
||||
"@wordpress/block-library": "7.3.5",
|
||||
"@wordpress/block-directory": "3.4.6",
|
||||
"@wordpress/block-editor": "8.5.5",
|
||||
"@wordpress/block-library": "7.3.6",
|
||||
"@wordpress/block-serialization-default-parser": "4.6.1",
|
||||
"@wordpress/blocks": "11.5.3",
|
||||
"@wordpress/components": "19.8.3",
|
||||
"@wordpress/components": "19.8.4",
|
||||
"@wordpress/compose": "5.4.1",
|
||||
"@wordpress/core-data": "4.4.4",
|
||||
"@wordpress/customize-widgets": "3.3.5",
|
||||
"@wordpress/core-data": "4.4.5",
|
||||
"@wordpress/customize-widgets": "3.3.6",
|
||||
"@wordpress/data": "6.6.1",
|
||||
"@wordpress/data-controls": "2.6.1",
|
||||
"@wordpress/date": "4.6.1",
|
||||
"@wordpress/deprecated": "3.6.1",
|
||||
"@wordpress/dom": "3.6.1",
|
||||
"@wordpress/dom-ready": "3.6.1",
|
||||
"@wordpress/edit-post": "6.3.5",
|
||||
"@wordpress/edit-site": "4.3.5",
|
||||
"@wordpress/edit-widgets": "4.3.5",
|
||||
"@wordpress/editor": "12.5.4",
|
||||
"@wordpress/edit-post": "6.3.6",
|
||||
"@wordpress/edit-site": "4.3.6",
|
||||
"@wordpress/edit-widgets": "4.3.6",
|
||||
"@wordpress/editor": "12.5.5",
|
||||
"@wordpress/element": "4.4.1",
|
||||
"@wordpress/escape-html": "2.6.1",
|
||||
"@wordpress/format-library": "3.4.4",
|
||||
"@wordpress/format-library": "3.4.5",
|
||||
"@wordpress/hooks": "3.6.1",
|
||||
"@wordpress/html-entities": "3.6.1",
|
||||
"@wordpress/i18n": "4.6.1",
|
||||
"@wordpress/icons": "8.2.2",
|
||||
"@wordpress/interface": "4.5.3",
|
||||
"@wordpress/interface": "4.5.4",
|
||||
"@wordpress/is-shallow-equal": "4.6.1",
|
||||
"@wordpress/keyboard-shortcuts": "3.4.1",
|
||||
"@wordpress/keycodes": "3.6.1",
|
||||
"@wordpress/list-reusable-blocks": "3.4.3",
|
||||
"@wordpress/list-reusable-blocks": "3.4.4",
|
||||
"@wordpress/media-utils": "3.4.1",
|
||||
"@wordpress/notices": "3.6.1",
|
||||
"@wordpress/nux": "5.4.3",
|
||||
"@wordpress/nux": "5.4.4",
|
||||
"@wordpress/plugins": "4.4.2",
|
||||
"@wordpress/preferences": "1.2.3",
|
||||
"@wordpress/preferences": "1.2.4",
|
||||
"@wordpress/primitives": "3.4.1",
|
||||
"@wordpress/priority-queue": "2.6.1",
|
||||
"@wordpress/redux-routine": "4.6.1",
|
||||
"@wordpress/reusable-blocks": "3.4.4",
|
||||
"@wordpress/reusable-blocks": "3.4.5",
|
||||
"@wordpress/rich-text": "5.4.2",
|
||||
"@wordpress/server-side-render": "3.4.4",
|
||||
"@wordpress/server-side-render": "3.4.5",
|
||||
"@wordpress/shortcode": "3.6.1",
|
||||
"@wordpress/style-engine": "0.5.1",
|
||||
"@wordpress/token-list": "2.6.1",
|
||||
"@wordpress/url": "3.7.1",
|
||||
"@wordpress/viewport": "4.4.1",
|
||||
"@wordpress/warning": "2.6.1",
|
||||
"@wordpress/widgets": "2.4.4",
|
||||
"@wordpress/widgets": "2.4.5",
|
||||
"@wordpress/wordcount": "3.6.1",
|
||||
"backbone": "1.4.1",
|
||||
"clipboard": "2.0.10",
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -79,6 +79,10 @@ function render_block_core_comment_template( $attributes, $content, $block ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( post_password_required( $block->context['postId'] ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$comment_query = new WP_Comment_Query(
|
||||
build_comment_query_vars_from_block( $block )
|
||||
);
|
||||
|
||||
@@ -18,6 +18,10 @@ function render_block_core_comments_pagination( $attributes, $content ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( post_password_required() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
return sprintf(
|
||||
'<div %1$s>%2$s</div>',
|
||||
get_block_wrapper_attributes(),
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
*/
|
||||
function render_block_core_comments_title( $attributes ) {
|
||||
|
||||
if ( post_password_required() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$align_class_name = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}";
|
||||
$show_post_title = ! empty( $attributes['showPostTitle'] ) && $attributes['showPostTitle'];
|
||||
$show_comments_count = ! empty( $attributes['showCommentsCount'] ) && $attributes['showCommentsCount'];
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
"default": 5
|
||||
}
|
||||
},
|
||||
"usesContext": [ "navigationArea" ],
|
||||
"providesContext": {
|
||||
"textColor": "textColor",
|
||||
"customTextColor": "customTextColor",
|
||||
|
||||
@@ -18,6 +18,10 @@ function render_block_core_post_comments_form( $attributes, $content, $block ) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if ( post_password_required( $block->context['postId'] ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$classes = 'comment-respond'; // See comment further below.
|
||||
if ( isset( $attributes['textAlign'] ) ) {
|
||||
$classes .= 'has-text-align-' . $attributes['textAlign'];
|
||||
|
||||
Reference in New Issue
Block a user