Version Description
Download this release
Release Info
| Developer | ramonopoly |
| Plugin | |
| Version | 3.7060 |
| Comparing to | |
| See all releases | |
Code changes from version 3.7046 to 3.7060
block-patterns/class-block-patterns-from-api.php
CHANGED
|
@@ -252,7 +252,10 @@ class Block_Patterns_From_API {
|
|
| 252 |
// Gutenberg registers patterns with varying prefixes, but categorizes them using `core/*` in a blockTypes array.
|
| 253 |
// This will ensure we remove `query/*` blocks for example.
|
| 254 |
// TODO: We need to revisit our usage or $pattern['blockTypes']: they are currently an experimental feature and not guaranteed to reference `core/*` blocks.
|
| 255 |
-
$pattern_block_type_or_name =
|
|
|
|
|
|
|
|
|
|
| 256 |
if ( 'core/' === substr( $pattern_block_type_or_name, 0, 5 ) ) {
|
| 257 |
unregister_block_pattern( $pattern['name'] );
|
| 258 |
}
|
|
@@ -275,8 +278,11 @@ class Block_Patterns_From_API {
|
|
| 275 |
private function update_core_patterns_with_wpcom_categories() {
|
| 276 |
if ( class_exists( 'WP_Block_Patterns_Registry' ) ) {
|
| 277 |
foreach ( \WP_Block_Patterns_Registry::get_instance()->get_all_registered() as $pattern ) {
|
| 278 |
-
$wpcom_categories =
|
| 279 |
-
|
|
|
|
|
|
|
|
|
|
| 280 |
unregister_block_pattern( $pattern['name'] );
|
| 281 |
$pattern_properties = array_merge(
|
| 282 |
$pattern,
|
| 252 |
// Gutenberg registers patterns with varying prefixes, but categorizes them using `core/*` in a blockTypes array.
|
| 253 |
// This will ensure we remove `query/*` blocks for example.
|
| 254 |
// TODO: We need to revisit our usage or $pattern['blockTypes']: they are currently an experimental feature and not guaranteed to reference `core/*` blocks.
|
| 255 |
+
$pattern_block_type_or_name =
|
| 256 |
+
isset( $pattern['blockTypes'] ) && ! empty( $pattern['blockTypes'][0] )
|
| 257 |
+
? $pattern['blockTypes'][0]
|
| 258 |
+
: $pattern['name'];
|
| 259 |
if ( 'core/' === substr( $pattern_block_type_or_name, 0, 5 ) ) {
|
| 260 |
unregister_block_pattern( $pattern['name'] );
|
| 261 |
}
|
| 278 |
private function update_core_patterns_with_wpcom_categories() {
|
| 279 |
if ( class_exists( 'WP_Block_Patterns_Registry' ) ) {
|
| 280 |
foreach ( \WP_Block_Patterns_Registry::get_instance()->get_all_registered() as $pattern ) {
|
| 281 |
+
$wpcom_categories =
|
| 282 |
+
$pattern['name'] && isset( $this->core_to_wpcom_categories_dictionary[ $pattern['name'] ] )
|
| 283 |
+
? $this->core_to_wpcom_categories_dictionary[ $pattern['name'] ]
|
| 284 |
+
: null;
|
| 285 |
+
if ( $wpcom_categories ) {
|
| 286 |
unregister_block_pattern( $pattern['name'] );
|
| 287 |
$pattern_properties = array_merge(
|
| 288 |
$pattern,
|
full-site-editing-plugin.php
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
/**
|
| 3 |
* Plugin Name: WordPress.com Editing Toolkit
|
| 4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
| 5 |
-
* Version: 3.
|
| 6 |
* Author: Automattic
|
| 7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
| 8 |
* License: GPLv2 or later
|
|
@@ -42,7 +42,7 @@ namespace A8C\FSE;
|
|
| 42 |
*
|
| 43 |
* @var string
|
| 44 |
*/
|
| 45 |
-
define( 'A8C_ETK_PLUGIN_VERSION', '3.
|
| 46 |
|
| 47 |
// Always include these helper files for dotcom FSE.
|
| 48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
| 2 |
/**
|
| 3 |
* Plugin Name: WordPress.com Editing Toolkit
|
| 4 |
* Description: Enhances your page creation workflow within the Block Editor.
|
| 5 |
+
* Version: 3.7060
|
| 6 |
* Author: Automattic
|
| 7 |
* Author URI: https://automattic.com/wordpress-plugins/
|
| 8 |
* License: GPLv2 or later
|
| 42 |
*
|
| 43 |
* @var string
|
| 44 |
*/
|
| 45 |
+
define( 'A8C_ETK_PLUGIN_VERSION', '3.7060' );
|
| 46 |
|
| 47 |
// Always include these helper files for dotcom FSE.
|
| 48 |
require_once __DIR__ . '/dotcom-fse/helpers.php';
|
readme.txt
CHANGED
|
@@ -3,7 +3,7 @@ Contributors: automattic
|
|
| 3 |
Tags: block, blocks, editor, gutenberg, page
|
| 4 |
Requires at least: 5.5
|
| 5 |
Tested up to: 5.6
|
| 6 |
-
Stable tag: 3.
|
| 7 |
Requires PHP: 5.6.20
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 3 |
Tags: block, blocks, editor, gutenberg, page
|
| 4 |
Requires at least: 5.5
|
| 5 |
Tested up to: 5.6
|
| 6 |
+
Stable tag: 3.7060
|
| 7 |
Requires PHP: 5.6.20
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
