Version Description
Download this release
Release Info
Developer | mattwiebe |
Plugin | Full Site Editing |
Version | 3.12771 |
Comparing to | |
See all releases |
Code changes from version 3.12738 to 3.12771
- full-site-editing-plugin.php +2 -2
- readme.txt +1 -1
- wpcom-universal-themes/index.php +8 -2
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.12771
|
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.12771' );
|
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.12771
|
7 |
Requires PHP: 5.6.20
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
wpcom-universal-themes/index.php
CHANGED
@@ -87,8 +87,14 @@ function unload_core_fse() {
|
|
87 |
remove_action( 'admin_menu', 'gutenberg_remove_legacy_pages' );
|
88 |
remove_action( 'admin_bar_menu', 'gutenberg_adminbar_items', 50 );
|
89 |
remove_filter( 'menu_order', 'gutenberg_menu_order' );
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
add_filter( 'block_editor_settings_all', __NAMESPACE__ . '\hide_fse_blocks' );
|
93 |
}
|
94 |
|
87 |
remove_action( 'admin_menu', 'gutenberg_remove_legacy_pages' );
|
88 |
remove_action( 'admin_bar_menu', 'gutenberg_adminbar_items', 50 );
|
89 |
remove_filter( 'menu_order', 'gutenberg_menu_order' );
|
90 |
+
if ( defined( 'REST_API_REQUEST' ) && true === REST_API_REQUEST ) {
|
91 |
+
// Do not hook to init during the REST API requests, as it causes PHP warnings
|
92 |
+
// while loading the alloptions (unable to access wp_0_ prefixed tables).
|
93 |
+
// Use the restapi_theme_init hook instead.
|
94 |
+
add_action( 'restapi_theme_init', __NAMESPACE__ . '\hide_template_cpts', 11 );
|
95 |
+
} else {
|
96 |
+
add_action( 'init', __NAMESPACE__ . '\hide_template_cpts', 11 );
|
97 |
+
}
|
98 |
add_filter( 'block_editor_settings_all', __NAMESPACE__ . '\hide_fse_blocks' );
|
99 |
}
|
100 |
|