Version Description
Download this release
Release Info
Developer | automattic |
Plugin | Full Site Editing |
Version | 3.26587 |
Comparing to | |
See all releases |
Code changes from version 3.26500 to 3.26587
- full-site-editing-plugin.php +2 -2
- readme.txt +1 -1
- wpcom-universal-themes/index.php +19 -0
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.26587
|
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.26587' );
|
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.26587
|
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
@@ -99,6 +99,11 @@ function load_core_fse() {
|
|
99 |
add_action( 'admin_menu', 'gutenberg_site_editor_menu', 9 );
|
100 |
add_action( 'admin_menu', 'gutenberg_remove_legacy_pages' );
|
101 |
add_action( 'admin_bar_menu', 'gutenberg_adminbar_items', 50 );
|
|
|
|
|
|
|
|
|
|
|
102 |
remove_action( 'init', __NAMESPACE__ . '\hide_template_cpts', 11 );
|
103 |
remove_action( 'restapi_theme_init', __NAMESPACE__ . '\hide_template_cpts', 11 );
|
104 |
remove_filter( 'block_editor_settings_all', __NAMESPACE__ . '\hide_fse_blocks' );
|
@@ -116,6 +121,11 @@ function unload_core_fse() {
|
|
116 |
remove_action( 'admin_menu', 'gutenberg_site_editor_menu', 9 );
|
117 |
remove_action( 'admin_menu', 'gutenberg_remove_legacy_pages' );
|
118 |
remove_action( 'admin_bar_menu', 'gutenberg_adminbar_items', 50 );
|
|
|
|
|
|
|
|
|
|
|
119 |
if ( defined( 'REST_API_REQUEST' ) && true === REST_API_REQUEST ) {
|
120 |
// Do not hook to init during the REST API requests, as it causes PHP warnings
|
121 |
// while loading the alloptions (unable to access wp_0_ prefixed tables).
|
@@ -369,6 +379,15 @@ function hide_core_site_editor() {
|
|
369 |
remove_submenu_page( 'themes.php', 'site-editor.php' );
|
370 |
}
|
371 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
372 |
/**
|
373 |
* Run everything
|
374 |
*
|
99 |
add_action( 'admin_menu', 'gutenberg_site_editor_menu', 9 );
|
100 |
add_action( 'admin_menu', 'gutenberg_remove_legacy_pages' );
|
101 |
add_action( 'admin_bar_menu', 'gutenberg_adminbar_items', 50 );
|
102 |
+
add_action( 'admin_menu', __NAMESPACE__ . '\hide_nav_menus_submenu' );
|
103 |
+
|
104 |
+
// Hides the AMP menu.
|
105 |
+
remove_action( 'admin_menu', 'amp_add_customizer_link' );
|
106 |
+
|
107 |
remove_action( 'init', __NAMESPACE__ . '\hide_template_cpts', 11 );
|
108 |
remove_action( 'restapi_theme_init', __NAMESPACE__ . '\hide_template_cpts', 11 );
|
109 |
remove_filter( 'block_editor_settings_all', __NAMESPACE__ . '\hide_fse_blocks' );
|
121 |
remove_action( 'admin_menu', 'gutenberg_site_editor_menu', 9 );
|
122 |
remove_action( 'admin_menu', 'gutenberg_remove_legacy_pages' );
|
123 |
remove_action( 'admin_bar_menu', 'gutenberg_adminbar_items', 50 );
|
124 |
+
remove_action( 'admin_menu', __NAMESPACE__ . '\hide_nav_menus_submenu' );
|
125 |
+
|
126 |
+
// Shows the AMP menu.
|
127 |
+
add_action( 'admin_menu', 'amp_add_customizer_link' );
|
128 |
+
|
129 |
if ( defined( 'REST_API_REQUEST' ) && true === REST_API_REQUEST ) {
|
130 |
// Do not hook to init during the REST API requests, as it causes PHP warnings
|
131 |
// while loading the alloptions (unable to access wp_0_ prefixed tables).
|
379 |
remove_submenu_page( 'themes.php', 'site-editor.php' );
|
380 |
}
|
381 |
|
382 |
+
/**
|
383 |
+
* Hide the (Nav) Menus submenu when site editing is enabled
|
384 |
+
*
|
385 |
+
* @return void
|
386 |
+
*/
|
387 |
+
function hide_nav_menus_submenu() {
|
388 |
+
remove_submenu_page( 'themes.php', 'nav-menus.php' );
|
389 |
+
}
|
390 |
+
|
391 |
/**
|
392 |
* Run everything
|
393 |
*
|