Skip to content

Commit

Permalink
remove is editor variable
Browse files Browse the repository at this point in the history
  • Loading branch information
vraja-pro committed Nov 25, 2024
1 parent 3187809 commit 9d312af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions admin/metabox/class-metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -814,10 +814,8 @@ public function enqueue() {
return;
}

$is_editor = self::is_post_edit( $pagenow );

/* Filter 'wpseo_always_register_metaboxes_on_admin' documented in wpseo-main.php */
if ( ( $is_editor === false && apply_filters( 'wpseo_always_register_metaboxes_on_admin', false ) === false ) || $this->display_metabox() === false ) {
if ( ( self::is_post_edit( $pagenow ) === false && apply_filters( 'wpseo_always_register_metaboxes_on_admin', false ) === false ) || $this->display_metabox() === false ) {
return;
}

Expand Down

0 comments on commit 9d312af

Please sign in to comment.