Version Description
To upgrade this plugin, remove the old version and replace with the new version. Or just click "Update" from the Plugins screen and let WordPress do it for you automatically.
Note: uninstalling the plugin from the WP Plugins screen results in the removal of all settings and data from the WP database.
Download this release
Release Info
Developer | specialk |
Plugin | Disable Gutenberg |
Version | 2.5.1 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.5.1
- css/font-icons.css +3 -0
- disable-gutenberg.php +3 -3
- inc/plugin-core.php +2 -0
- inc/plugin-features.php +1 -1
- inc/settings-register.php +1 -1
- readme.txt +16 -6
css/font-icons.css
CHANGED
@@ -18,6 +18,9 @@
|
|
18 |
.fa-pad {
|
19 |
padding: 0 3px 0 0;
|
20 |
}
|
|
|
|
|
|
|
21 |
.fa-cogs:before {
|
22 |
content: "\f085";
|
23 |
}
|
18 |
.fa-pad {
|
19 |
padding: 0 3px 0 0;
|
20 |
}
|
21 |
+
.fa-pad-more {
|
22 |
+
padding: 0 5px 0 0;
|
23 |
+
}
|
24 |
.fa-cogs:before {
|
25 |
content: "\f085";
|
26 |
}
|
disable-gutenberg.php
CHANGED
@@ -10,8 +10,8 @@
|
|
10 |
Contributors: specialk
|
11 |
Requires at least: 4.9
|
12 |
Tested up to: 5.8
|
13 |
-
Stable tag: 2.5
|
14 |
-
Version: 2.5
|
15 |
Requires PHP: 5.6.20
|
16 |
Text Domain: disable-gutenberg
|
17 |
Domain Path: /languages
|
@@ -69,7 +69,7 @@ if (!class_exists('DisableGutenberg')) {
|
|
69 |
|
70 |
function constants() {
|
71 |
|
72 |
-
if (!defined('DISABLE_GUTENBERG_VERSION')) define('DISABLE_GUTENBERG_VERSION', '2.5');
|
73 |
if (!defined('DISABLE_GUTENBERG_REQUIRE')) define('DISABLE_GUTENBERG_REQUIRE', '4.9');
|
74 |
if (!defined('DISABLE_GUTENBERG_AUTHOR')) define('DISABLE_GUTENBERG_AUTHOR', 'Jeff Starr');
|
75 |
if (!defined('DISABLE_GUTENBERG_NAME')) define('DISABLE_GUTENBERG_NAME', __('Disable Gutenberg', 'disable-gutenberg'));
|
10 |
Contributors: specialk
|
11 |
Requires at least: 4.9
|
12 |
Tested up to: 5.8
|
13 |
+
Stable tag: 2.5.1
|
14 |
+
Version: 2.5.1
|
15 |
Requires PHP: 5.6.20
|
16 |
Text Domain: disable-gutenberg
|
17 |
Domain Path: /languages
|
69 |
|
70 |
function constants() {
|
71 |
|
72 |
+
if (!defined('DISABLE_GUTENBERG_VERSION')) define('DISABLE_GUTENBERG_VERSION', '2.5.1');
|
73 |
if (!defined('DISABLE_GUTENBERG_REQUIRE')) define('DISABLE_GUTENBERG_REQUIRE', '4.9');
|
74 |
if (!defined('DISABLE_GUTENBERG_AUTHOR')) define('DISABLE_GUTENBERG_AUTHOR', 'Jeff Starr');
|
75 |
if (!defined('DISABLE_GUTENBERG_NAME')) define('DISABLE_GUTENBERG_NAME', __('Disable Gutenberg', 'disable-gutenberg'));
|
inc/plugin-core.php
CHANGED
@@ -34,6 +34,8 @@ function disable_gutenberg($post_id = false) {
|
|
34 |
|
35 |
if (isset($_GET['classic-editor'])) return true;
|
36 |
|
|
|
|
|
37 |
if (disable_gutenberg_disable_all()) return true;
|
38 |
|
39 |
if (disable_gutenberg_disable_user_role()) return true;
|
34 |
|
35 |
if (isset($_GET['classic-editor'])) return true;
|
36 |
|
37 |
+
if (isset($_POST['classic-editor'])) return true;
|
38 |
+
|
39 |
if (disable_gutenberg_disable_all()) return true;
|
40 |
|
41 |
if (disable_gutenberg_disable_user_role()) return true;
|
inc/plugin-features.php
CHANGED
@@ -165,7 +165,7 @@ function disable_gutenberg_edit_form_top() {
|
|
165 |
|
166 |
?>
|
167 |
|
168 |
-
<input type="hidden" name="classic-editor" value=""
|
169 |
|
170 |
<?php
|
171 |
|
165 |
|
166 |
?>
|
167 |
|
168 |
+
<input type="hidden" name="classic-editor" value="1">
|
169 |
|
170 |
<?php
|
171 |
|
inc/settings-register.php
CHANGED
@@ -163,7 +163,7 @@ function disable_gutenberg_settings_section_6() {
|
|
163 |
|
164 |
function disable_gutenberg_settings_section_7() {
|
165 |
|
166 |
-
echo '<p class="g7g-display"><strong><a class="g7g-toggle" href="#more-tools" title="'. esc_attr__('Toggle More Tools', 'disable-gutenberg') .'">'. esc_html__('Click here', 'disable-gutenberg') .'</a></strong> '. esc_html__('to display more tools and options. Note: these options remain in effect even when hidden on this page.', 'disable-gutenberg') .'</p>';
|
167 |
|
168 |
}
|
169 |
|
163 |
|
164 |
function disable_gutenberg_settings_section_7() {
|
165 |
|
166 |
+
echo '<p class="g7g-display"><span class="fa fa-pad-more fa-gear"></span><strong><a class="g7g-toggle" href="#more-tools" title="'. esc_attr__('Toggle More Tools', 'disable-gutenberg') .'">'. esc_html__('Click here', 'disable-gutenberg') .'</a></strong> '. esc_html__('to display more tools and options. Note: these options remain in effect even when hidden on this page.', 'disable-gutenberg') .'</p>';
|
167 |
|
168 |
}
|
169 |
|
readme.txt
CHANGED
@@ -10,8 +10,8 @@ Donate link: https://monzillamedia.com/donate.html
|
|
10 |
Contributors: specialk
|
11 |
Requires at least: 4.9
|
12 |
Tested up to: 5.8
|
13 |
-
Stable tag: 2.5
|
14 |
-
Version: 2.5
|
15 |
Requires PHP: 5.6.20
|
16 |
Text Domain: disable-gutenberg
|
17 |
Domain Path: /languages
|
@@ -60,7 +60,7 @@ Just activate and done! The default plugin settings are configured to hide all t
|
|
60 |
* NEW! Option to disables frontend Gutenberg stylesheet
|
61 |
|
62 |
> Works same as Classic Editor plugin, but can do a LOT more!
|
63 |
-
> Lightweight and super fast, built with
|
64 |
|
65 |
Fully configurable, enable or disable Gutenberg and restore the Classic Editor wherever is necessary.
|
66 |
|
@@ -80,7 +80,9 @@ _Automatically replaces Gutenberg with the Classic Editor._
|
|
80 |
* One-click restore plugin default options
|
81 |
* Translation ready
|
82 |
|
83 |
-
|
|
|
|
|
84 |
|
85 |
_Super light & fast plugin, super easy on server resources!_
|
86 |
|
@@ -166,9 +168,10 @@ So if you hide the plugin's menu item, you always can access the settings direct
|
|
166 |
|
167 |
The settings include a "More Tools" link. Clicking it toggles open some advanced options:
|
168 |
|
|
|
169 |
* Disable Nag - Disables "Try Gutenberg" nag
|
170 |
-
* Enable Frontend - Enables
|
171 |
-
* Whitelist Options - Displays the
|
172 |
* Plugin Menu Item - Hides the Disable Gutenberg menu item
|
173 |
* Gutenberg Menu Item - Hides the Gutenberg plugin menu item (for WP less than 5.0)
|
174 |
* Display Edit Links - Displays "Add New (Classic)" menu links and Classic/Block edit links
|
@@ -298,6 +301,13 @@ Thank you to everyone for using Disable Gutenberg and for all the [awesome 5-sta
|
|
298 |
If you have any feedback or suggestions to make this plugin the absolute best it can be, and/or would like to help with development, please reach me via my [contact form](https://perishablepress.com/contact/) at Perishable Press.
|
299 |
|
300 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
**2.5 (2021/07/13)**
|
302 |
|
303 |
* Adds option to disable block widgets and use classic widgets
|
10 |
Contributors: specialk
|
11 |
Requires at least: 4.9
|
12 |
Tested up to: 5.8
|
13 |
+
Stable tag: 2.5.1
|
14 |
+
Version: 2.5.1
|
15 |
Requires PHP: 5.6.20
|
16 |
Text Domain: disable-gutenberg
|
17 |
Domain Path: /languages
|
60 |
* NEW! Option to disables frontend Gutenberg stylesheet
|
61 |
|
62 |
> Works same as Classic Editor plugin, but can do a LOT more!
|
63 |
+
> Lightweight and super fast, built with WP APIs :)
|
64 |
|
65 |
Fully configurable, enable or disable Gutenberg and restore the Classic Editor wherever is necessary.
|
66 |
|
80 |
* One-click restore plugin default options
|
81 |
* Translation ready
|
82 |
|
83 |
+
> Works great with Google AMP and the WordPress [AMP plugin](https://wordpress.org/plugins/amp/).
|
84 |
+
|
85 |
+
Disable Gutenberg is developed by [Jeff Starr](https://monzillamedia.com/), 15-year WordPress developer, book author, and support guru.
|
86 |
|
87 |
_Super light & fast plugin, super easy on server resources!_
|
88 |
|
168 |
|
169 |
The settings include a "More Tools" link. Clicking it toggles open some advanced options:
|
170 |
|
171 |
+
* Classic Widgets - Restores Classic Widgets
|
172 |
* Disable Nag - Disables "Try Gutenberg" nag
|
173 |
+
* Enable Frontend - Enables frontend block stylesheet
|
174 |
+
* Whitelist Options - Displays the whitelist settings
|
175 |
* Plugin Menu Item - Hides the Disable Gutenberg menu item
|
176 |
* Gutenberg Menu Item - Hides the Gutenberg plugin menu item (for WP less than 5.0)
|
177 |
* Display Edit Links - Displays "Add New (Classic)" menu links and Classic/Block edit links
|
301 |
If you have any feedback or suggestions to make this plugin the absolute best it can be, and/or would like to help with development, please reach me via my [contact form](https://perishablepress.com/contact/) at Perishable Press.
|
302 |
|
303 |
|
304 |
+
**2.5.1 (2021/07/25)**
|
305 |
+
|
306 |
+
* Fixes bug with not remembering editor
|
307 |
+
* Tweaks details on plugin settings page
|
308 |
+
* Improves readme.txt/documentation
|
309 |
+
* Further tests on WordPress 5.8
|
310 |
+
|
311 |
**2.5 (2021/07/13)**
|
312 |
|
313 |
* Adds option to disable block widgets and use classic widgets
|