Disable Gutenberg - Version 2.7

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 Icon 128x128 Disable Gutenberg
Version 2.7
Comparing to
See all releases

Code changes from version 2.6 to 2.7

disable-gutenberg.php CHANGED
@@ -9,9 +9,9 @@
9
  Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.9
12
- Tested up to: 5.9
13
- Stable tag: 2.6
14
- Version: 2.6
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.6');
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'));
@@ -121,7 +121,7 @@ if (!class_exists('DisableGutenberg')) {
121
  'whitelist-title' => '',
122
  'whitelist' => 0,
123
  'styles-enable' => 0,
124
- 'classic-widgets' => 0,
125
 
126
  );
127
 
9
  Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.9
12
+ Tested up to: 6.0
13
+ Stable tag: 2.7
14
+ Version: 2.7
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.7');
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'));
121
  'whitelist-title' => '',
122
  'whitelist' => 0,
123
  'styles-enable' => 0,
124
+ 'classic-widgets' => 1,
125
 
126
  );
127
 
inc/plugin-core.php CHANGED
@@ -178,7 +178,7 @@ function disable_gutenberg_disable_post_type() {
178
 
179
  if ($pagenow === 'edit.php') {
180
 
181
- if (empty($typenow)) $typenow = 'post';
182
 
183
  $post_type = $typenow;
184
 
178
 
179
  if ($pagenow === 'edit.php') {
180
 
181
+ // if (empty($typenow)) $typenow = 'post';
182
 
183
  $post_type = $typenow;
184
 
inc/plugin-frontend.php CHANGED
@@ -14,9 +14,17 @@ function disable_gutenberg_wp_enqueue_scripts() {
14
 
15
  if (!$enable && !disable_gutenberg_whitelist($post_id)) {
16
 
 
17
  wp_dequeue_style('wp-block-library');
18
  wp_dequeue_style('wp-block-library-theme');
19
 
 
 
 
 
 
 
 
20
  }
21
 
22
  }
14
 
15
  if (!$enable && !disable_gutenberg_whitelist($post_id)) {
16
 
17
+ // blocks
18
  wp_dequeue_style('wp-block-library');
19
  wp_dequeue_style('wp-block-library-theme');
20
 
21
+ // theme.json
22
+ wp_dequeue_style('global-styles');
23
+
24
+ // svg
25
+ remove_action('wp_enqueue_scripts', 'wp_enqueue_global_styles');
26
+ remove_action('wp_body_open', 'wp_global_styles_render_svg_filters');
27
+
28
  }
29
 
30
  }
readme.txt CHANGED
@@ -9,9 +9,9 @@ Author URI: https://plugin-planet.com/
9
  Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.9
12
- Tested up to: 5.9
13
- Stable tag: 2.6
14
- Version: 2.6
15
  Requires PHP: 5.6.20
16
  Text Domain: disable-gutenberg
17
  Domain Path: /languages
@@ -232,7 +232,7 @@ Yes, you can install and activate Disable Gutenberg on any supported WordPress v
232
  Yes, if both plugins are active at the same time, Disable Gutenberg gives priority to Classic Editor plugin. So if you want to use Disable Gutenberg, deactivate the Classic Editor plugin (you do not have to remove it, just deactivate via the Plugins screen).
233
 
234
 
235
- **Classic Editor expires in 2022, what about Disable Gutenberg?**
236
 
237
  I can't make any promises, but I intend to develop with WordPress for the long-haul. Who knows what the future holds, but the plan is to keep Disable Gutenberg going for many years to come. Why? Because the original RTE/Visual Editor is awesome. I strongly feel it's one of the many reasons why WordPress has enjoyed its great success. I've been using the original/classic editor for over 10 years now and it's always been 100% smooth experience. I've tried Gutenberg, and yes it is much better now than in previous versions, but for me it's just not as comfortable or streamlined as the classic editor. So yeah, will do everything possible to keep Disable Gutenberg (and the Classic Editor) going well beyond 2022.
238
 
@@ -302,6 +302,14 @@ Thank you to everyone for using Disable Gutenberg and for all the [awesome 5-sta
302
  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 the [contact form](https://plugin-planet.com/support/#contact) at Plugin Planet.
303
 
304
 
 
 
 
 
 
 
 
 
305
  **2.6 (2022/01/10)**
306
 
307
  * Improves loading of translations
9
  Donate link: https://monzillamedia.com/donate.html
10
  Contributors: specialk
11
  Requires at least: 4.9
12
+ Tested up to: 6.0
13
+ Stable tag: 2.7
14
+ Version: 2.7
15
  Requires PHP: 5.6.20
16
  Text Domain: disable-gutenberg
17
  Domain Path: /languages
232
  Yes, if both plugins are active at the same time, Disable Gutenberg gives priority to Classic Editor plugin. So if you want to use Disable Gutenberg, deactivate the Classic Editor plugin (you do not have to remove it, just deactivate via the Plugins screen).
233
 
234
 
235
+ **Classic Editor planned to expire in 2022, what about Disable Gutenberg?**
236
 
237
  I can't make any promises, but I intend to develop with WordPress for the long-haul. Who knows what the future holds, but the plan is to keep Disable Gutenberg going for many years to come. Why? Because the original RTE/Visual Editor is awesome. I strongly feel it's one of the many reasons why WordPress has enjoyed its great success. I've been using the original/classic editor for over 10 years now and it's always been 100% smooth experience. I've tried Gutenberg, and yes it is much better now than in previous versions, but for me it's just not as comfortable or streamlined as the classic editor. So yeah, will do everything possible to keep Disable Gutenberg (and the Classic Editor) going well beyond 2022.
238
 
302
  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 the [contact form](https://plugin-planet.com/support/#contact) at Plugin Planet.
303
 
304
 
305
+ **2.7 (2022/05/15)**
306
+
307
+ * Disable block widgets option now enabled by default
308
+ * Disables new global `theme.json` styles on front end
309
+ * Disables new hidden SVG block content on front end
310
+ * Fixes bug with `disable_gutenberg_disable_post_type()`
311
+ * Tests on WordPress 6.0
312
+
313
  **2.6 (2022/01/10)**
314
 
315
  * Improves loading of translations