Disable Gutenberg - Version 1.5.1

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

Code changes from version 1.5 to 1.5.1

Files changed (3) hide show
  1. disable-gutenberg.php +3 -3
  2. inc/plugin-core.php +3 -1
  3. readme.txt +7 -3
disable-gutenberg.php CHANGED
@@ -10,8 +10,8 @@
10
  Contributors: specialk
11
  Requires at least: 4.9
12
  Tested up to: 5.0
13
- Stable tag: 1.5
14
- Version: 1.5
15
  Requires PHP: 5.2.4
16
  Text Domain: disable-gutenberg
17
  Domain Path: /languages
@@ -67,7 +67,7 @@ if (!class_exists('DisableGutenberg')) {
67
 
68
  function constants() {
69
 
70
- if (!defined('DISABLE_GUTENBERG_VERSION')) define('DISABLE_GUTENBERG_VERSION', '1.5');
71
  if (!defined('DISABLE_GUTENBERG_REQUIRE')) define('DISABLE_GUTENBERG_REQUIRE', '4.9');
72
  if (!defined('DISABLE_GUTENBERG_AUTHOR')) define('DISABLE_GUTENBERG_AUTHOR', 'Jeff Starr');
73
  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.0
13
+ Stable tag: 1.5.1
14
+ Version: 1.5.1
15
  Requires PHP: 5.2.4
16
  Text Domain: disable-gutenberg
17
  Domain Path: /languages
67
 
68
  function constants() {
69
 
70
+ if (!defined('DISABLE_GUTENBERG_VERSION')) define('DISABLE_GUTENBERG_VERSION', '1.5.1');
71
  if (!defined('DISABLE_GUTENBERG_REQUIRE')) define('DISABLE_GUTENBERG_REQUIRE', '4.9');
72
  if (!defined('DISABLE_GUTENBERG_AUTHOR')) define('DISABLE_GUTENBERG_AUTHOR', 'Jeff Starr');
73
  if (!defined('DISABLE_GUTENBERG_NAME')) define('DISABLE_GUTENBERG_NAME', __('Disable Gutenberg', 'disable-gutenberg'));
inc/plugin-core.php CHANGED
@@ -336,7 +336,9 @@ function disable_gutenberg_whitelist_slug($post_id = false) {
336
 
337
  $post_id = disable_gutenberg_get_post_id($post_id);
338
 
339
- if (is_admin() && !empty($post_id)) {
 
 
340
 
341
  $post = get_post($post_id);
342
 
336
 
337
  $post_id = disable_gutenberg_get_post_id($post_id);
338
 
339
+ $status = get_post_status($post_id);
340
+
341
+ if (is_admin() && !empty($post_id) && $status === 'publish') {
342
 
343
  $post = get_post($post_id);
344
 
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.0
13
- Stable tag: 1.5
14
- Version: 1.5
15
  Requires PHP: 5.2.4
16
  Text Domain: disable-gutenberg
17
  Domain Path: /languages
@@ -260,8 +260,12 @@ Version 1.5 brings some great new features and improvements. Note that better Mu
260
 
261
  Cheers and Happy Holidays to all! :)
262
 
 
263
 
264
- **1.5 (2018/12/12)**
 
 
 
265
 
266
  * Increases minimum required WP version to 4.9
267
  * Increases minimum required PHP version to 5.2.4
10
  Contributors: specialk
11
  Requires at least: 4.9
12
  Tested up to: 5.0
13
+ Stable tag: 1.5.1
14
+ Version: 1.5.1
15
  Requires PHP: 5.2.4
16
  Text Domain: disable-gutenberg
17
  Domain Path: /languages
260
 
261
  Cheers and Happy Holidays to all! :)
262
 
263
+ **1.5.1 (2018/12/10)**
264
 
265
+ * Fixes possible false negative with whitelist settings
266
+ * Tests on WordPress 5.0
267
+
268
+ **1.5 (2018/12/10)**
269
 
270
  * Increases minimum required WP version to 4.9
271
  * Increases minimum required PHP version to 5.2.4