We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0b47cd + 77e9492 commit 8e069e4Copy full SHA for 8e069e4
1 file changed
includes/admin/class-rop-admin.php
@@ -751,6 +751,7 @@ public function publish_now_upsell() {
751
*
752
* This is quite complex as it needs to check various conditions:
753
* - If the Classic Editor plugin is active.
754
+ * - If the Disabled Gutenberg plugin is active.
755
* - If the post is saved with the Classic Editor.
756
* - If the user has selected the Classic Editor in their profile.
757
* - If the post is a new post (post_id is 0).
@@ -767,6 +768,11 @@ public static function is_classic_editor() {
767
768
return true;
769
}
770
771
+ // disable-gutenberg plugin is active.
772
+ if ( class_exists( 'DisableGutenberg' ) ) {
773
+ return true;
774
+ }
775
+
776
if ( ! class_exists( 'Classic_Editor' ) ) {
777
return false;
778
0 commit comments