From 77e94923432ef61531136d668a5967b7ba5af34b Mon Sep 17 00:00:00 2001 From: girishpanchal30 Date: Mon, 4 Aug 2025 14:57:29 +0530 Subject: [PATCH] fix: options visibility when gutenberg is disabled --- includes/admin/class-rop-admin.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/admin/class-rop-admin.php b/includes/admin/class-rop-admin.php index 90c2c9373..11d8b7ab5 100644 --- a/includes/admin/class-rop-admin.php +++ b/includes/admin/class-rop-admin.php @@ -751,6 +751,7 @@ public function publish_now_upsell() { * * This is quite complex as it needs to check various conditions: * - If the Classic Editor plugin is active. + * - If the Disabled Gutenberg plugin is active. * - If the post is saved with the Classic Editor. * - If the user has selected the Classic Editor in their profile. * - If the post is a new post (post_id is 0). @@ -767,6 +768,11 @@ public static function is_classic_editor() { return true; } + // disable-gutenberg plugin is active. + if ( class_exists( 'DisableGutenberg' ) ) { + return true; + } + if ( ! class_exists( 'Classic_Editor' ) ) { return false; }