From d6e8d9341219e3948f49765880d88586354244d8 Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 19 Dec 2018 03:16:48 +0000 Subject: [PATCH] Block Editor: Upgrade `@wordpress` packages to match version 4.7.1. Updated packages: - `@wordpress/annotations - `@wordpress/api-fetch - `@wordpress/block-library@2.2.10 - `@wordpress/block-serialization-default-parser@2.0.2` - `@wordpress/block-serialization-spec-parser@2.0.2` - `@wordpress/blocks@6.0.4` - `@wordpress/components@7.0.4` - `@wordpress/core-data@2.0.15` - `@wordpress/data@4.1.0` - `@wordpress/date@3.0.1` - `@wordpress/edit-post@3.1.5` - `@wordpress/editor@9.0.5` - `@wordpress/eslint-plugin@1.0.0` - `@wordpress/format-library@1.2.8` - `@wordpress/html-entities@2.0.4` - `@wordpress/list-reusable-blocks@1.1.17` - `@wordpress/notices@1.1.1` - `@wordpress/nux@3.0.5` - `@wordpress/rich-text@3.0.3` - `@wordpress/url@2.3.2` - `@wordpress/viewport@2.0.13` This also includes the updates the Core blocks. The script loader is updated to match the Gutenberg repository as well. Props atimmer, gziolo, joen, youknowriad. Merges [44183] to trunk. Fixes #45442, #45637. Built from https://develop.svn.wordpress.org/trunk@44296 git-svn-id: http://core.svn.wordpress.org/trunk@44126 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks/block.php | 4 + wp-includes/blocks/categories.php | 2 +- wp-includes/blocks/latest-comments.php | 58 +- wp-includes/class-wp-block-parser.php | 85 +- .../css/dist/block-library/editor-rtl.css | 6 +- .../css/dist/block-library/editor-rtl.min.css | 2 +- wp-includes/css/dist/block-library/editor.css | 6 +- .../css/dist/block-library/editor.min.css | 2 +- wp-includes/css/dist/edit-post/style-rtl.css | 2 + .../css/dist/edit-post/style-rtl.min.css | 2 +- wp-includes/css/dist/edit-post/style.css | 2 + wp-includes/css/dist/edit-post/style.min.css | 2 +- wp-includes/css/dist/editor/style-rtl.css | 3 +- wp-includes/css/dist/editor/style-rtl.min.css | 2 +- wp-includes/css/dist/editor/style.css | 3 +- wp-includes/css/dist/editor/style.min.css | 2 +- wp-includes/js/dist/annotations.js | 10 +- wp-includes/js/dist/annotations.min.js | 2 +- wp-includes/js/dist/block-library.js | 109 ++- wp-includes/js/dist/block-library.min.js | 6 +- wp-includes/js/dist/blocks.js | 147 ++- wp-includes/js/dist/blocks.min.js | 2 +- wp-includes/js/dist/components.js | 78 +- wp-includes/js/dist/components.min.js | 4 +- wp-includes/js/dist/core-data.js | 8 +- wp-includes/js/dist/core-data.min.js | 2 +- wp-includes/js/dist/data.js | 21 +- wp-includes/js/dist/data.min.js | 2 +- wp-includes/js/dist/date.js | 889 +++++++++--------- wp-includes/js/dist/date.min.js | 6 +- wp-includes/js/dist/dom.js | 24 +- wp-includes/js/dist/dom.min.js | 2 +- wp-includes/js/dist/edit-post.js | 156 ++- wp-includes/js/dist/edit-post.min.js | 2 +- wp-includes/js/dist/editor.js | 602 +++++++----- wp-includes/js/dist/editor.min.js | 6 +- wp-includes/js/dist/element.js | 4 +- wp-includes/js/dist/element.min.js | 2 +- wp-includes/js/dist/format-library.js | 8 +- wp-includes/js/dist/format-library.min.js | 2 +- wp-includes/js/dist/keycodes.js | 24 +- wp-includes/js/dist/keycodes.min.js | 2 +- wp-includes/js/dist/nux.js | 26 +- wp-includes/js/dist/nux.min.js | 2 +- wp-includes/js/dist/rich-text.js | 90 +- wp-includes/js/dist/rich-text.min.js | 2 +- wp-includes/js/dist/viewport.js | 64 +- wp-includes/js/dist/viewport.min.js | 2 +- wp-includes/script-loader.php | 39 +- wp-includes/version.php | 2 +- 50 files changed, 1429 insertions(+), 1101 deletions(-) diff --git a/wp-includes/blocks/block.php b/wp-includes/blocks/block.php index 77a281802c..aa235f1703 100644 --- a/wp-includes/blocks/block.php +++ b/wp-includes/blocks/block.php @@ -22,6 +22,10 @@ function render_block_core_block( $attributes ) { return ''; } + if ( 'publish' !== $reusable_block->post_status || ! empty( $reusable_block->post_password ) ) { + return ''; + } + return do_blocks( $reusable_block->post_content ); } diff --git a/wp-includes/blocks/categories.php b/wp-includes/blocks/categories.php index f302d9ba74..5704204606 100644 --- a/wp-includes/blocks/categories.php +++ b/wp-includes/blocks/categories.php @@ -72,7 +72,7 @@ function build_dropdown_script_block_core_categories( $dropdown_id ) { ?>