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 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.5
- disable-gutenberg.php +5 -4
- inc/plugin-core.php +24 -1
- inc/settings-register.php +16 -12
- js/settings.js +6 -0
- languages/disable-gutenberg.pot +161 -153
- readme.txt +12 -3
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.
|
13 |
-
Stable tag: 2.
|
14 |
-
Version: 2.
|
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.
|
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,6 +121,7 @@ if (!class_exists('DisableGutenberg')) {
|
|
121 |
'whitelist-title' => '',
|
122 |
'whitelist' => 0,
|
123 |
'styles-enable' => 0,
|
|
|
124 |
|
125 |
);
|
126 |
|
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
|
14 |
+
Version: 2.5
|
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');
|
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' => 0,
|
125 |
|
126 |
);
|
127 |
|
inc/plugin-core.php
CHANGED
@@ -16,6 +16,8 @@ function disable_gutenberg_init() {
|
|
16 |
|
17 |
if (disable_gutenberg()) disable_gutenberg_remove();
|
18 |
|
|
|
|
|
19 |
}
|
20 |
|
21 |
function disable_gutenberg($post_id = false) {
|
@@ -426,4 +428,25 @@ function disable_gutenberg_get_post_id($post_id = false) {
|
|
426 |
|
427 |
return $post_id;
|
428 |
|
429 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
if (disable_gutenberg()) disable_gutenberg_remove();
|
18 |
|
19 |
+
disable_gutenberg_restore_widgets();
|
20 |
+
|
21 |
}
|
22 |
|
23 |
function disable_gutenberg($post_id = false) {
|
428 |
|
429 |
return $post_id;
|
430 |
|
431 |
+
}
|
432 |
+
|
433 |
+
function disable_gutenberg_restore_widgets() {
|
434 |
+
|
435 |
+
$restore = false;
|
436 |
+
|
437 |
+
$options = disable_gutenberg_get_options();
|
438 |
+
|
439 |
+
if (isset($options['classic-widgets'])) {
|
440 |
+
|
441 |
+
$restore = (!empty($options['classic-widgets'])) ? true : false;
|
442 |
+
|
443 |
+
}
|
444 |
+
|
445 |
+
if ($restore) {
|
446 |
+
|
447 |
+
add_filter('gutenberg_use_widgets_block_editor', '__return_false');
|
448 |
+
add_filter('use_widgets_block_editor', '__return_false');
|
449 |
+
|
450 |
+
}
|
451 |
+
|
452 |
+
}
|
inc/settings-register.php
CHANGED
@@ -38,19 +38,20 @@ function disable_gutenberg_register_settings() {
|
|
38 |
add_settings_field('templates', __('Disable Templates', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_4', array('id' => 'templates', 'label' => esc_html__('Separate multiple templates with commas', 'disable-gutenberg')));
|
39 |
add_settings_field('post-ids', __('Disable Post IDs', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_5', array('id' => 'post-ids', 'label' => esc_html__('Separate multiple post IDs with commas', 'disable-gutenberg')));
|
40 |
|
41 |
-
add_settings_field('whitelist-id', __('Whitelist Post IDs', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_6', array('id' => 'whitelist-id', 'label' => esc_html__('Post IDs that always should use the Block Editor',
|
42 |
-
add_settings_field('whitelist-slug', __('Whitelist Post Slugs', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_6', array('id' => 'whitelist-slug', 'label' => esc_html__('Post slugs that always should use the Block Editor',
|
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('
|
46 |
-
add_settings_field('
|
47 |
-
add_settings_field('
|
48 |
-
add_settings_field('
|
49 |
-
add_settings_field('hide-
|
50 |
-
add_settings_field('
|
51 |
-
add_settings_field('
|
52 |
-
add_settings_field('
|
53 |
-
add_settings_field('
|
|
|
54 |
|
55 |
}
|
56 |
|
@@ -96,6 +97,9 @@ function disable_gutenberg_validate_options($input) {
|
|
96 |
if (!isset($input['disable-all'])) $input['disable-all'] = null;
|
97 |
$input['disable-all'] = ($input['disable-all'] == 1 ? 1 : 0);
|
98 |
|
|
|
|
|
|
|
99 |
if (!isset($input['disable-nag'])) $input['disable-nag'] = null;
|
100 |
$input['disable-nag'] = ($input['disable-nag'] == 1 ? 1 : 0);
|
101 |
|
@@ -159,7 +163,7 @@ function disable_gutenberg_settings_section_6() {
|
|
159 |
|
160 |
function disable_gutenberg_settings_section_7() {
|
161 |
|
162 |
-
echo '<p class="g7g-display"><a class="g7g-toggle" href="#more-tools" title="'. esc_attr__('Toggle More Tools', 'disable-gutenberg') .'">'. esc_html__('Click here', 'disable-gutenberg') .'</a> '. esc_html__('to display more tools and options. Note: these options remain in effect even when hidden on this page.', 'disable-gutenberg') .'</p>';
|
163 |
|
164 |
}
|
165 |
|
38 |
add_settings_field('templates', __('Disable Templates', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_4', array('id' => 'templates', 'label' => esc_html__('Separate multiple templates with commas', 'disable-gutenberg')));
|
39 |
add_settings_field('post-ids', __('Disable Post IDs', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_5', array('id' => 'post-ids', 'label' => esc_html__('Separate multiple post IDs with commas', 'disable-gutenberg')));
|
40 |
|
41 |
+
add_settings_field('whitelist-id', __('Whitelist Post IDs', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_6', array('id' => 'whitelist-id', 'label' => esc_html__('Post IDs that always should use the Block Editor', 'disable-gutenberg')));
|
42 |
+
add_settings_field('whitelist-slug', __('Whitelist Post Slugs', 'disable-gutenberg'), 'disable_gutenberg_callback_text', 'disable_gutenberg_options', 'settings_6', array('id' => 'whitelist-slug', 'label' => esc_html__('Post slugs that always should use the Block Editor', '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', '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')));
|
51 |
+
add_settings_field('links-enable', __('Display Edit Links', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'links-enable', 'label' => esc_html__('Display "Add New (Classic)" menu link and Classic/Block edit links', 'disable-gutenberg')));
|
52 |
+
add_settings_field('acf-enable', __('ACF Support', 'disable-gutenberg'), 'disable_gutenberg_callback_checkbox', 'disable_gutenberg_options', 'settings_7', array('id' => 'acf-enable', 'label' => esc_html__('Enable Custom Fields Meta Box (ACF disables by default),', 'disable-gutenberg') .' <a target="_blank" rel="noopener noreferrer" href="https://m0n.co/acf">'. esc_html__('learn more', 'disable-gutenberg') .'</a>'));
|
53 |
+
add_settings_field('reset_options', __('Reset Options', 'disable-gutenberg'), 'disable_gutenberg_callback_reset', 'disable_gutenberg_options', 'settings_7', array('id' => 'reset_options', 'label' => esc_html__('Restore default plugin options', 'disable-gutenberg')));
|
54 |
+
add_settings_field('rate_plugin', __('Rate Plugin', 'disable-gutenberg'), 'disable_gutenberg_callback_rate', 'disable_gutenberg_options', 'settings_7', array('id' => 'rate_plugin', 'label' => esc_html__('Show support with a 5-star rating »', 'disable-gutenberg')));
|
55 |
|
56 |
}
|
57 |
|
97 |
if (!isset($input['disable-all'])) $input['disable-all'] = null;
|
98 |
$input['disable-all'] = ($input['disable-all'] == 1 ? 1 : 0);
|
99 |
|
100 |
+
if (!isset($input['classic-widgets'])) $input['classic-widgets'] = null;
|
101 |
+
$input['classic-widgets'] = ($input['classic-widgets'] == 1 ? 1 : 0);
|
102 |
+
|
103 |
if (!isset($input['disable-nag'])) $input['disable-nag'] = null;
|
104 |
$input['disable-nag'] = ($input['disable-nag'] == 1 ? 1 : 0);
|
105 |
|
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 |
|
js/settings.js
CHANGED
@@ -99,6 +99,8 @@ function disable_gutenberg_toggle_more($) {
|
|
99 |
var row5 = table.find('tr:nth-child(5)');
|
100 |
var row6 = table.find('tr:nth-child(6)');
|
101 |
var row7 = table.find('tr:nth-child(7)');
|
|
|
|
|
102 |
|
103 |
$(row2).hide();
|
104 |
$(row3).hide();
|
@@ -106,6 +108,8 @@ function disable_gutenberg_toggle_more($) {
|
|
106 |
$(row5).hide();
|
107 |
$(row6).hide();
|
108 |
$(row7).hide();
|
|
|
|
|
109 |
|
110 |
$('.g7g-toggle').click(function(e) {
|
111 |
e.preventDefault();
|
@@ -115,6 +119,8 @@ function disable_gutenberg_toggle_more($) {
|
|
115 |
$(row5).slideToggle();
|
116 |
$(row6).slideToggle();
|
117 |
$(row7).slideToggle();
|
|
|
|
|
118 |
return false;
|
119 |
});
|
120 |
|
99 |
var row5 = table.find('tr:nth-child(5)');
|
100 |
var row6 = table.find('tr:nth-child(6)');
|
101 |
var row7 = table.find('tr:nth-child(7)');
|
102 |
+
var row8 = table.find('tr:nth-child(8)');
|
103 |
+
var row9 = table.find('tr:nth-child(9)');
|
104 |
|
105 |
$(row2).hide();
|
106 |
$(row3).hide();
|
108 |
$(row5).hide();
|
109 |
$(row6).hide();
|
110 |
$(row7).hide();
|
111 |
+
$(row8).hide();
|
112 |
+
$(row9).hide();
|
113 |
|
114 |
$('.g7g-toggle').click(function(e) {
|
115 |
e.preventDefault();
|
119 |
$(row5).slideToggle();
|
120 |
$(row6).slideToggle();
|
121 |
$(row7).slideToggle();
|
122 |
+
$(row8).slideToggle();
|
123 |
+
$(row9).slideToggle();
|
124 |
return false;
|
125 |
});
|
126 |
|
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:
|
7 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
8 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
9 |
"Language-Team: \n"
|
@@ -14,300 +14,308 @@ msgstr ""
|
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Generator: Loco https://localise.biz/"
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
msgid "Disable Gutenberg"
|
20 |
-
msgstr ""
|
21 |
-
|
22 |
-
#: disable-gutenberg.php:155
|
23 |
-
msgid "Settings"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: disable-gutenberg.php:170
|
27 |
-
msgid "Plugin Homepage"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#:
|
31 |
-
msgid "
|
32 |
msgstr ""
|
33 |
|
34 |
-
#:
|
35 |
-
msgid "
|
36 |
msgstr ""
|
37 |
|
38 |
-
#:
|
39 |
-
msgid "
|
40 |
msgstr ""
|
41 |
|
42 |
-
#:
|
43 |
-
msgid "
|
44 |
msgstr ""
|
45 |
|
46 |
-
#:
|
47 |
-
msgid "
|
48 |
msgstr ""
|
49 |
|
50 |
-
#:
|
51 |
-
msgid "
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: disable-gutenberg.php:
|
55 |
-
msgid "
|
56 |
msgstr ""
|
57 |
|
58 |
-
#:
|
59 |
-
msgid "
|
60 |
msgstr ""
|
61 |
|
62 |
-
#:
|
63 |
-
msgid "
|
64 |
msgstr ""
|
65 |
|
66 |
#: inc/settings-reset.php:18
|
67 |
msgid "Default options restored."
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: inc/settings-
|
71 |
-
msgid "
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: inc/
|
75 |
-
msgid "
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: inc/
|
79 |
-
msgid "
|
80 |
msgstr ""
|
81 |
|
82 |
-
|
83 |
-
|
84 |
-
msgid "
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: inc/
|
88 |
-
msgid "
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: inc/
|
92 |
-
|
93 |
-
msgid "Edit “%s” in the Classic Editor"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: inc/
|
97 |
-
msgid "
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: inc/
|
101 |
-
msgid "
|
102 |
msgstr ""
|
103 |
|
104 |
-
|
105 |
-
msgid "
|
|
|
|
|
|
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: inc/
|
109 |
-
msgid "
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: inc/settings-register.php:
|
113 |
-
msgid "
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: inc/settings-register.php:
|
117 |
-
msgid "
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: inc/
|
121 |
-
|
|
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: inc/
|
125 |
-
|
|
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: inc/settings-register.php:
|
129 |
-
msgid "
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: inc/settings-register.php:
|
133 |
-
msgid "
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: inc/settings-register.php:
|
137 |
-
msgid "
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: inc/settings-register.php:
|
141 |
-
msgid "
|
|
|
|
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: inc/settings-register.php:
|
145 |
-
msgid "
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: inc/settings-register.php:
|
149 |
-
msgid "
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: inc/settings-register.php:
|
153 |
-
msgid "
|
154 |
msgstr ""
|
155 |
|
156 |
-
#:
|
157 |
-
msgid "
|
158 |
msgstr ""
|
159 |
|
160 |
-
|
161 |
-
msgid "
|
162 |
msgstr ""
|
163 |
|
164 |
-
|
165 |
-
msgid "
|
166 |
msgstr ""
|
167 |
|
168 |
-
|
169 |
-
msgid "
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: inc/settings-register.php:
|
173 |
-
msgid "
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: inc/settings-
|
177 |
-
msgid "
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: inc/
|
181 |
-
msgid "
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: inc/settings-register.php:
|
185 |
-
msgid "
|
186 |
msgstr ""
|
187 |
|
188 |
-
#:
|
189 |
-
msgid "
|
190 |
msgstr ""
|
191 |
|
192 |
-
#:
|
193 |
-
msgid "
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: inc/settings-register.php:
|
197 |
msgid "Plugin Menu Item"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: inc/settings-register.php:
|
201 |
-
msgid "
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: inc/settings-register.php:
|
205 |
-
msgid "
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: inc/settings-register.php:
|
209 |
-
msgid "
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: inc/settings-register.php:
|
213 |
-
msgid "
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: inc/settings-register.php:
|
217 |
-
msgid "
|
218 |
msgstr ""
|
219 |
|
220 |
-
#:
|
221 |
-
msgid "
|
222 |
msgstr ""
|
223 |
|
224 |
-
#:
|
225 |
-
msgid "
|
226 |
msgstr ""
|
227 |
|
228 |
-
#: inc/settings-register.php:
|
229 |
-
msgid "
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: inc/
|
233 |
-
msgid "
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: inc/settings-register.php:
|
237 |
msgid "Restore default plugin options"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: inc/settings-register.php:
|
241 |
-
msgid "
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: inc/settings-register.php:
|
245 |
-
msgid "
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: inc/settings-register.php:
|
249 |
msgid ""
|
250 |
-
"
|
251 |
-
"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: inc/settings-register.php:
|
255 |
-
msgid "
|
|
|
|
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: inc/settings-register.php:
|
259 |
-
msgid "Select the
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: inc/settings-register.php:
|
263 |
-
msgid ""
|
264 |
-
"Select the theme template files for which Gutenberg should be disabled (e.g.,"
|
265 |
-
" custom-page.php)."
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: inc/settings-register.php:
|
269 |
-
msgid "
|
270 |
msgstr ""
|
271 |
|
272 |
-
#:
|
273 |
-
msgid ""
|
274 |
-
"Select the posts that always should use the Gutenberg Block Editor. Separate "
|
275 |
-
"multiple values with commas."
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: inc/settings-register.php:
|
279 |
-
msgid "
|
280 |
msgstr ""
|
281 |
|
282 |
-
#:
|
283 |
-
msgid "
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: inc/settings-register.php:
|
287 |
msgid ""
|
288 |
"to display more tools and options. Note: these options remain in effect even "
|
289 |
"when hidden on this page."
|
290 |
msgstr ""
|
291 |
|
292 |
-
#:
|
293 |
-
msgid "
|
294 |
msgstr ""
|
295 |
|
296 |
-
|
297 |
-
msgid ""
|
298 |
-
"Disables Gutenberg Block Editor and restores the Classic Editor and original "
|
299 |
-
"Edit Post screen. Provides options to enable on specific post types, user "
|
300 |
-
"roles, and more."
|
301 |
msgstr ""
|
302 |
|
303 |
-
|
304 |
-
msgid "
|
305 |
msgstr ""
|
306 |
|
307 |
-
|
308 |
-
msgid "
|
309 |
msgstr ""
|
310 |
|
311 |
-
|
312 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
msgstr ""
|
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"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
"X-Generator: Loco https://localise.biz/"
|
16 |
|
17 |
+
#: disable-gutenberg.php:201
|
18 |
+
msgid " or higher, and has been deactivated! "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
msgstr ""
|
20 |
|
21 |
+
#: inc/plugin-features.php:49
|
22 |
+
msgid "(Classic)"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: inc/settings-register.php:52
|
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 |
|
37 |
+
#: inc/settings-register.php:45
|
38 |
+
msgid "Classic Widgets"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: inc/settings-register.php:166
|
42 |
+
msgid "Click here"
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: disable-gutenberg.php:177
|
46 |
+
msgid "Click here to rate and review this plugin on WordPress.org"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: inc/settings-register.php:20
|
50 |
+
msgid "Complete Disable"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: inc/resources-enqueue.php:41
|
54 |
+
msgid "Confirm Reset"
|
55 |
msgstr ""
|
56 |
|
57 |
#: inc/settings-reset.php:18
|
58 |
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
|
66 |
+
msgid "Disable Block Widgets and enable Classic Widgets"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: inc/settings-register.php:26 inc/settings-register.php:34
|
70 |
+
msgid "Disable for"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#. Name of the plugin
|
74 |
+
#: disable-gutenberg.php:75
|
75 |
+
msgid "Disable Gutenberg"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: inc/settings-register.php:20
|
79 |
+
msgid "Disable Gutenberg everywhere"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: inc/settings-register.php:46
|
83 |
+
msgid "Disable Nag"
|
|
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: inc/settings-register.php:39
|
87 |
+
msgid "Disable Post IDs"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: inc/settings-register.php:38
|
91 |
+
msgid "Disable Templates"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#. Description of the plugin
|
95 |
+
msgid ""
|
96 |
+
"Disables Gutenberg Block Editor and restores the Classic Editor and original "
|
97 |
+
"Edit Post screen. Provides options to enable on specific post types, user "
|
98 |
+
"roles, and more."
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: inc/settings-register.php:51
|
102 |
+
msgid "Display \"Add New (Classic)\" menu link and Classic/Block edit links"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: inc/settings-register.php:51
|
106 |
+
msgid "Display Edit Links"
|
107 |
msgstr ""
|
108 |
|
109 |
+
#: inc/settings-register.php:48
|
110 |
+
msgid "Display Whitelist settings"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: inc/plugin-features.php:86
|
114 |
+
#, php-format
|
115 |
+
msgid "Edit “%s” in the Block Editor"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: inc/plugin-features.php:96
|
119 |
+
#, php-format
|
120 |
+
msgid "Edit “%s” in the Classic Editor"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: inc/settings-register.php:52
|
124 |
+
msgid "Enable Custom Fields Meta Box (ACF disables by default),"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: inc/settings-register.php:47
|
128 |
+
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
|
136 |
+
msgid ""
|
137 |
+
"Enable this setting to completely disable Gutenberg (and restore the Classic "
|
138 |
+
"Editor). Or, disable this setting to display more options."
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: inc/settings-register.php:50
|
142 |
+
msgid "Gutenberg Menu Item"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: inc/settings-register.php:50
|
146 |
+
msgid "Hide Gutenberg plugin’s menu item (for WP < 5.0)"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: inc/settings-register.php:49
|
150 |
+
msgid "Hide this plugin’s menu item"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: disable-gutenberg.php:172
|
154 |
+
msgid "Homepage"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#. URI of the plugin
|
158 |
+
msgid "https://perishablepress.com/disable-gutenberg/"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#. Author URI of the plugin
|
162 |
+
msgid "https://plugin-planet.com/"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#. Author of the plugin
|
166 |
+
msgid "Jeff Starr"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: inc/settings-register.php:52
|
170 |
+
msgid "learn more"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: inc/settings-reset.php:24
|
174 |
+
msgid "No changes made to options."
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: inc/resources-enqueue.php:44
|
178 |
+
msgid "No, abort mission."
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: inc/settings-register.php:232
|
182 |
+
msgid "Please give a 5-star rating! A huge THANK YOU for your support!"
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: disable-gutenberg.php:202
|
186 |
+
msgid "Please return to the"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: disable-gutenberg.php:171
|
190 |
+
msgid "Plugin Homepage"
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: inc/settings-register.php:49
|
194 |
msgid "Plugin Menu Item"
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: inc/settings-register.php:41
|
198 |
+
msgid "Post IDs that always should use the Block Editor"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: inc/settings-register.php:42
|
202 |
+
msgid "Post slugs that always should use the Block Editor"
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: inc/settings-register.php:43
|
206 |
+
msgid "Post titles that always should use the Block Editor"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: inc/settings-register.php:34
|
210 |
+
msgid "Post Type ="
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: inc/settings-register.php:54
|
214 |
+
msgid "Rate Plugin"
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: disable-gutenberg.php:178
|
218 |
+
msgid "Rate this plugin"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: disable-gutenberg.php:200
|
222 |
+
msgid "requires WordPress "
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: inc/settings-register.php:53
|
226 |
+
msgid "Reset Options"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: inc/resources-enqueue.php:42
|
230 |
+
msgid "Restore default options?"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: inc/settings-register.php:53 inc/settings-register.php:223
|
234 |
msgid "Restore default plugin options"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: inc/settings-register.php:154
|
238 |
+
msgid "Select the post IDs for which Gutenberg should be disabled."
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: inc/settings-register.php:142
|
242 |
+
msgid "Select the post types for which Gutenberg should be disabled."
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: inc/settings-register.php:160
|
246 |
msgid ""
|
247 |
+
"Select the posts that always should use the Gutenberg Block Editor. Separate "
|
248 |
+
"multiple values with commas."
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: inc/settings-register.php:148
|
252 |
+
msgid ""
|
253 |
+
"Select the theme template files for which Gutenberg should be disabled (e.g.,"
|
254 |
+
" custom-page.php)."
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: inc/settings-register.php:136
|
258 |
+
msgid "Select the user roles for which Gutenberg should be disabled."
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: inc/settings-register.php:39
|
262 |
+
msgid "Separate multiple post IDs with commas"
|
|
|
|
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: inc/settings-register.php:38
|
266 |
+
msgid "Separate multiple templates with commas"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: disable-gutenberg.php:156
|
270 |
+
msgid "Settings"
|
|
|
|
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: inc/settings-register.php:54 inc/settings-register.php:233
|
274 |
+
msgid "Show support with a 5-star rating »"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: disable-gutenberg.php:223 disable-gutenberg.php:229
|
278 |
+
msgid "Sorry, pal!"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: inc/settings-register.php:166
|
282 |
msgid ""
|
283 |
"to display more tools and options. Note: these options remain in effect even "
|
284 |
"when hidden on this page."
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: disable-gutenberg.php:203
|
288 |
+
msgid "to upgrade WordPress and try again."
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: inc/settings-register.php:166
|
292 |
+
msgid "Toggle More Tools"
|
|
|
|
|
|
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: inc/settings-register.php:26
|
296 |
+
msgid "User Role ="
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: inc/settings-register.php:48
|
300 |
+
msgid "Whitelist Options"
|
301 |
msgstr ""
|
302 |
|
303 |
+
#: inc/settings-register.php:41
|
304 |
+
msgid "Whitelist Post IDs"
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
+
#: inc/settings-register.php:42
|
308 |
+
msgid "Whitelist Post Slugs"
|
309 |
+
msgstr ""
|
310 |
+
|
311 |
+
#: inc/settings-register.php:43
|
312 |
+
msgid "Whitelist Post Titles"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#: disable-gutenberg.php:203
|
316 |
+
msgid "WP Admin Area"
|
317 |
+
msgstr ""
|
318 |
+
|
319 |
+
#: inc/resources-enqueue.php:43
|
320 |
+
msgid "Yes, make it so."
|
321 |
msgstr ""
|
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.
|
13 |
-
Stable tag: 2.
|
14 |
-
Version: 2.
|
15 |
Requires PHP: 5.6.20
|
16 |
Text Domain: disable-gutenberg
|
17 |
Domain Path: /languages
|
@@ -38,6 +38,8 @@ The Disable Gutenberg plugin restores the classic (original) WordPress editor an
|
|
38 |
|
39 |
Just activate and done! The default plugin settings are configured to hide all traces of the Gutenberg Block Editor, and fully restore the original Classic Editor. Further options for customizing when/where Gutenberg is enabled are available in the plugin settings.
|
40 |
|
|
|
|
|
41 |
|
42 |
**Options**
|
43 |
|
@@ -47,6 +49,7 @@ Just activate and done! The default plugin settings are configured to hide all t
|
|
47 |
* Disable Gutenberg for any theme template
|
48 |
* Disable Gutenberg for any post/page IDs
|
49 |
* Disable Gutenberg admin notice (nag)
|
|
|
50 |
* Option to hide the plugin menu item
|
51 |
* Option to hide the Gutenberg plugin menu item (settings link)
|
52 |
* Adds "Classic Editor" link to each post on the Posts screen
|
@@ -295,6 +298,12 @@ Thank you to everyone for using Disable Gutenberg and for all the [awesome 5-sta
|
|
295 |
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.
|
296 |
|
297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
**2.4 (2021/02/08)**
|
299 |
|
300 |
* Tests on PHP 7.4 and 8.0
|
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
|
14 |
+
Version: 2.5
|
15 |
Requires PHP: 5.6.20
|
16 |
Text Domain: disable-gutenberg
|
17 |
Domain Path: /languages
|
38 |
|
39 |
Just activate and done! The default plugin settings are configured to hide all traces of the Gutenberg Block Editor, and fully restore the original Classic Editor. Further options for customizing when/where Gutenberg is enabled are available in the plugin settings.
|
40 |
|
41 |
+
> NEW! Disable Block Widgets and restore Classic Widgets :)
|
42 |
+
|
43 |
|
44 |
**Options**
|
45 |
|
49 |
* Disable Gutenberg for any theme template
|
50 |
* Disable Gutenberg for any post/page IDs
|
51 |
* Disable Gutenberg admin notice (nag)
|
52 |
+
* Option to restore Classic Widgets
|
53 |
* Option to hide the plugin menu item
|
54 |
* Option to hide the Gutenberg plugin menu item (settings link)
|
55 |
* Adds "Classic Editor" link to each post on the Posts screen
|
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
|
304 |
+
* Generates new default translation template
|
305 |
+
* Tests on WordPress 5.8
|
306 |
+
|
307 |
**2.4 (2021/02/08)**
|
308 |
|
309 |
* Tests on PHP 7.4 and 8.0
|