Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions includes/admin/class-rop-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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;
}
Expand Down
Loading