Skip to content

Commit 5ed57a4

Browse files
committed
fix: wpbakery compatibility
1 parent e56e2a0 commit 5ed57a4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

includes/admin/class-rop-admin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,11 @@ public function publish_now_upsell() {
762762
* @since 8.0.0
763763
*/
764764
public static function is_classic_editor() {
765+
if ( isset( $_GET['wpb-backend-editor'] ) ) {
766+
// If the wpb-backend-editor is set, we are using the classic editor via WPBakery.
767+
return true;
768+
}
769+
765770
if ( ! class_exists( 'Classic_Editor' ) ) {
766771
return false;
767772
}

0 commit comments

Comments
 (0)