Disable Gutenberg - Version 2.6

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.6
Comparing to
See all releases

Code changes from version 2.5.1 to 2.6

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.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
@@ -32,7 +32,7 @@
32
  You should have received a copy of the GNU General Public License
33
  with this program. If not, visit: https://www.gnu.org/licenses/
34
 
35
- Copyright 2021 Monzilla Media. All rights reserved.
36
  */
37
 
38
  if (!defined('ABSPATH')) die();
@@ -47,7 +47,7 @@ if (!class_exists('DisableGutenberg')) {
47
  $this->includes();
48
 
49
  add_action('admin_init', array($this, 'check_version'));
50
- add_action('plugins_loaded', array($this, 'load_i18n'));
51
  add_filter('plugin_action_links', array($this, 'action_links'), 10, 2);
52
  add_filter('plugin_row_meta', array($this, 'plugin_links'), 10, 2);
53
 
@@ -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.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'));
@@ -214,7 +214,7 @@ if (!class_exists('DisableGutenberg')) {
214
 
215
  function load_i18n() {
216
 
217
- load_plugin_textdomain('disable-gutenberg', false, DISABLE_GUTENBERG_DIR .'languages/');
218
 
219
  }
220
 
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
32
  You should have received a copy of the GNU General Public License
33
  with this program. If not, visit: https://www.gnu.org/licenses/
34
 
35
+ Copyright 2022 Monzilla Media. All rights reserved.
36
  */
37
 
38
  if (!defined('ABSPATH')) die();
47
  $this->includes();
48
 
49
  add_action('admin_init', array($this, 'check_version'));
50
+ add_action('init', array($this, 'load_i18n'));
51
  add_filter('plugin_action_links', array($this, 'action_links'), 10, 2);
52
  add_filter('plugin_row_meta', array($this, 'plugin_links'), 10, 2);
53
 
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'));
214
 
215
  function load_i18n() {
216
 
217
+ load_plugin_textdomain('disable-gutenberg', false, dirname(plugin_basename(__FILE__)) .'/languages/');
218
 
219
  }
220
 
inc/plugin-features.php CHANGED
@@ -59,6 +59,8 @@ add_action('admin_menu', 'disable_gutenberg_add_submenus');
59
 
60
  function disable_gutenberg_page_row_actions($actions, $post) {
61
 
 
 
62
  if (!disable_gutenberg_enable_features()) return $actions;
63
 
64
  if (disable_gutenberg_whitelist($post->ID)) return $actions;
59
 
60
  function disable_gutenberg_page_row_actions($actions, $post) {
61
 
62
+ if (disable_gutenberg()) return $actions;
63
+
64
  if (!disable_gutenberg_enable_features()) return $actions;
65
 
66
  if (disable_gutenberg_whitelist($post->ID)) return $actions;
inc/settings-register.php CHANGED
@@ -43,8 +43,8 @@ function disable_gutenberg_register_settings() {
43
  add_settings_field('whitelist-title', __('Whitelist Post Titles', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_6', array('id' => 'whitelist-title', 'label' => esc_html__('Post titles that always should use the Block Editor', 'disable-gutenberg')));
44
 
45
  add_settings_field('classic-widgets', __('Classic Widgets', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'classic-widgets', 'label' => esc_html__('Disable Block Widgets and enable Classic Widgets', 'disable-gutenberg')));
46
- add_settings_field('disable-nag', __('Disable Nag', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'disable-nag', 'label' => esc_html__('Disable "Try Gutenberg" nag', 'disable-gutenberg')));
47
- add_settings_field('styles-enable', __('Enable Frontend', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'styles-enable', 'label' => esc_html__('Enable frontend Gutenberg styles', 'disable-gutenberg')));
48
  add_settings_field('whitelist', __('Whitelist Options', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'whitelist', 'label' => esc_html__('Display Whitelist settings', 'disable-gutenberg')));
49
  add_settings_field('hide-menu', __('Plugin Menu Item', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'hide-menu', 'label' => esc_html__('Hide this plugin’s menu item', 'disable-gutenberg')));
50
  add_settings_field('hide-gut', __('Gutenberg Menu Item', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'hide-gut', 'label' => esc_html__('Hide Gutenberg plugin’s menu item (for WP < 5.0)', 'disable-gutenberg')));
43
  add_settings_field('whitelist-title', __('Whitelist Post Titles', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_6', array('id' => 'whitelist-title', 'label' => esc_html__('Post titles that always should use the Block Editor', 'disable-gutenberg')));
44
 
45
  add_settings_field('classic-widgets', __('Classic Widgets', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'classic-widgets', 'label' => esc_html__('Disable Block Widgets and enable Classic Widgets', 'disable-gutenberg')));
46
+ add_settings_field('disable-nag', __('Disable Nag', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'disable-nag', 'label' => esc_html__('Disable "Try Gutenberg" nag (for older versions of WP)', 'disable-gutenberg')));
47
+ add_settings_field('styles-enable', __('Enable Frontend', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'styles-enable', 'label' => esc_html__('Enable frontend Gutenberg/block styles', 'disable-gutenberg')));
48
  add_settings_field('whitelist', __('Whitelist Options', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'whitelist', 'label' => esc_html__('Display Whitelist settings', 'disable-gutenberg')));
49
  add_settings_field('hide-menu', __('Plugin Menu Item', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'hide-menu', 'label' => esc_html__('Hide this plugin’s menu item', 'disable-gutenberg')));
50
  add_settings_field('hide-gut', __('Gutenberg Menu Item', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'hide-gut', 'label' => esc_html__('Hide Gutenberg plugin’s menu item (for WP < 5.0)', 'disable-gutenberg')));
languages/disable-gutenberg.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Disable Gutenberg\n"
5
  "Report-Msgid-Bugs-To: \n"
6
- "POT-Creation-Date: 2021-07-13 18:47+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
@@ -26,11 +26,11 @@ msgstr ""
26
  msgid "ACF Support"
27
  msgstr ""
28
 
29
- #: inc/plugin-features.php:84
30
  msgid "Block Edit"
31
  msgstr ""
32
 
33
- #: inc/plugin-features.php:94
34
  msgid "Classic Edit"
35
  msgstr ""
36
 
@@ -59,7 +59,7 @@ msgid "Default options restored."
59
  msgstr ""
60
 
61
  #: inc/settings-register.php:46
62
- msgid "Disable \"Try Gutenberg\" nag"
63
  msgstr ""
64
 
65
  #: inc/settings-register.php:45
@@ -110,12 +110,12 @@ msgstr ""
110
  msgid "Display Whitelist settings"
111
  msgstr ""
112
 
113
- #: inc/plugin-features.php:86
114
  #, php-format
115
  msgid "Edit &#8220;%s&#8221; in the Block Editor"
116
  msgstr ""
117
 
118
- #: inc/plugin-features.php:96
119
  #, php-format
120
  msgid "Edit &#8220;%s&#8221; in the Classic Editor"
121
  msgstr ""
@@ -129,7 +129,7 @@ msgid "Enable Frontend"
129
  msgstr ""
130
 
131
  #: inc/settings-register.php:47
132
- msgid "Enable frontend Gutenberg styles"
133
  msgstr ""
134
 
135
  #: inc/settings-register.php:130
3
  msgstr ""
4
  "Project-Id-Version: Disable Gutenberg\n"
5
  "Report-Msgid-Bugs-To: \n"
6
+ "POT-Creation-Date: 2022-01-10 23:31+0000\n"
7
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
8
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
9
  "Language-Team: \n"
26
  msgid "ACF Support"
27
  msgstr ""
28
 
29
+ #: inc/plugin-features.php:86
30
  msgid "Block Edit"
31
  msgstr ""
32
 
33
+ #: inc/plugin-features.php:96
34
  msgid "Classic Edit"
35
  msgstr ""
36
 
59
  msgstr ""
60
 
61
  #: inc/settings-register.php:46
62
+ msgid "Disable \"Try Gutenberg\" nag (for older versions of WP)"
63
  msgstr ""
64
 
65
  #: inc/settings-register.php:45
110
  msgid "Display Whitelist settings"
111
  msgstr ""
112
 
113
+ #: inc/plugin-features.php:88
114
  #, php-format
115
  msgid "Edit &#8220;%s&#8221; in the Block Editor"
116
  msgstr ""
117
 
118
+ #: inc/plugin-features.php:98
119
  #, php-format
120
  msgid "Edit &#8220;%s&#8221; in the Classic Editor"
121
  msgstr ""
129
  msgstr ""
130
 
131
  #: inc/settings-register.php:47
132
+ msgid "Enable frontend Gutenberg/block styles"
133
  msgstr ""
134
 
135
  #: inc/settings-register.php:130
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.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
@@ -54,10 +54,10 @@ Just activate and done! The default plugin settings are configured to hide all t
54
  * Option to hide the Gutenberg plugin menu item (settings link)
55
  * Adds "Classic Editor" link to each post on the Posts screen
56
  * Adds item to the WP sidebar menu: "Add New (Classic)"
57
- * NEW! Option to enable Custom Fields Meta Box for ACF
58
- * NEW! Choose which editor to use for each post
59
- * NEW! Whitelist any post title, slug, or ID
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 :)
@@ -178,7 +178,7 @@ The settings include a "More Tools" link. Clicking it toggles open some advanced
178
  * ACF Support - Enables the Custom Fields Meta Box (ACF plugin disables by default)
179
  * Reset Options - Restores the default plugin options
180
 
181
- If there are any questions about these items or anything else, feel free to [contact me directly](https://perishablepress.com/contact/) or post in the [WP Support Forums](https://wordpress.org/support/plugin/disable-gutenberg/).
182
 
183
 
184
  **Uninstalling**
@@ -269,7 +269,7 @@ The default Gutenberg/Block styles are disabled by default when DG plugin is act
269
 
270
  **Got a question?**
271
 
272
- Send any questions or feedback via my [contact form](https://perishablepress.com/contact/)
273
 
274
 
275
 
@@ -281,6 +281,7 @@ I develop and maintain this free plugin with love for the WordPress community. T
281
  * [Digging into WordPress](https://digwp.com/)
282
  * [.htaccess made easy](https://htaccessbook.com/)
283
  * [WordPress Themes In Depth](https://wp-tao.com/wordpress-themes-book/)
 
284
 
285
  And/or purchase one of my premium WordPress plugins:
286
 
@@ -298,9 +299,18 @@ Links, tweets and likes also appreciated. Thanks! :)
298
 
299
  Thank you to everyone for using Disable Gutenberg and for all the [awesome 5-star reviews](https://wordpress.org/support/plugin/disable-gutenberg/reviews/)!
300
 
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
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
54
  * Option to hide the Gutenberg plugin menu item (settings link)
55
  * Adds "Classic Editor" link to each post on the Posts screen
56
  * Adds item to the WP sidebar menu: "Add New (Classic)"
57
+ * Option to enable Custom Fields Meta Box for ACF
58
+ * Choose which editor to use for each post
59
+ * Whitelist any post title, slug, or ID
60
+ * Option to enable/disable 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 :)
178
  * ACF Support - Enables the Custom Fields Meta Box (ACF plugin disables by default)
179
  * Reset Options - Restores the default plugin options
180
 
181
+ If there are any questions about these items or anything else, feel free to [contact me directly](https://plugin-planet.com/support/#contact) or post in the [WP Support Forums](https://wordpress.org/support/plugin/disable-gutenberg/).
182
 
183
 
184
  **Uninstalling**
269
 
270
  **Got a question?**
271
 
272
+ Send any questions or feedback via my [contact form](https://plugin-planet.com/support/#contact)
273
 
274
 
275
 
281
  * [Digging into WordPress](https://digwp.com/)
282
  * [.htaccess made easy](https://htaccessbook.com/)
283
  * [WordPress Themes In Depth](https://wp-tao.com/wordpress-themes-book/)
284
+ * [Wizard's SQL Recipes for WordPress](https://books.perishablepress.com/downloads/wizards-collection-sql-recipes-wordpress/)
285
 
286
  And/or purchase one of my premium WordPress plugins:
287
 
299
 
300
  Thank you to everyone for using Disable Gutenberg and for all the [awesome 5-star reviews](https://wordpress.org/support/plugin/disable-gutenberg/reviews/)!
301
 
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
308
+ * Improves clarity on settings page
309
+ * Removes Edit Links when Gutenberg is disabled
310
+ * Updates some links to external resources
311
+ * Generates new default translation template
312
+ * Tests on WordPress 5.9
313
+
314
  **2.5.1 (2021/07/25)**
315
 
316
  * Fixes bug with not remembering editor