Skip to content

Commit 6b07f83

Browse files
committed
Addressing #741
1 parent f9be8d9 commit 6b07f83

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

inc/class-panels-ui.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ public function __construct() {
4141
*/
4242
public function metabox() {
4343
foreach ( pootlepb_settings( 'post-types' ) as $type ) {
44-
if ( ! defined( 'GUTENBERG_VERSION' ) || pootlepb_uses_pb() ) {
45-
add_meta_box( 'pootlepb-panels', __( 'Page Builder', 'ppb-panels' ), array(
46-
$this,
47-
'metabox_render'
48-
), $type, 'advanced', 'high' );
44+
if ( ! function_exists( 'register_block_type' ) || pootlepb_uses_pb() ) {
45+
add_meta_box( 'pootlepb-panels', __( 'Page Builder', 'ppb-panels' ),
46+
array( $this, 'metabox_render' ), $type, 'advanced', 'high' );
4947
}
5048
}
5149
}

0 commit comments

Comments
 (0)