Skip to content

Commit 8e069e4

Browse files
Merge pull request #1059 from Codeinwp/bugfix/pro/611
fix: options visibility when gutenberg is disabled
2 parents a0b47cd + 77e9492 commit 8e069e4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

includes/admin/class-rop-admin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ public function publish_now_upsell() {
751751
*
752752
* This is quite complex as it needs to check various conditions:
753753
* - If the Classic Editor plugin is active.
754+
* - If the Disabled Gutenberg plugin is active.
754755
* - If the post is saved with the Classic Editor.
755756
* - If the user has selected the Classic Editor in their profile.
756757
* - If the post is a new post (post_id is 0).
@@ -767,6 +768,11 @@ public static function is_classic_editor() {
767768
return true;
768769
}
769770

771+
// disable-gutenberg plugin is active.
772+
if ( class_exists( 'DisableGutenberg' ) ) {
773+
return true;
774+
}
775+
770776
if ( ! class_exists( 'Classic_Editor' ) ) {
771777
return false;
772778
}

0 commit comments

Comments
 (0)