From 9d312af75a1ed06eadc746d1a54a45be7f315519 Mon Sep 17 00:00:00 2001 From: Vraja Das Date: Mon, 25 Nov 2024 13:48:47 +0200 Subject: [PATCH] remove is editor variable --- admin/metabox/class-metabox.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/admin/metabox/class-metabox.php b/admin/metabox/class-metabox.php index f18edc78493..9cb890b0fef 100644 --- a/admin/metabox/class-metabox.php +++ b/admin/metabox/class-metabox.php @@ -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; }