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; }