PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/metabox/class-metabox.php +3 -4 27.9 → trunk View file →
@@ -357,10 +357,9 @@
357 357 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output escaped in class.
358 358 echo new Meta_Fields_Presenter( $this->get_metabox_post(), 'social' );
359 359 }
360 360
361 - $screen = WP_Screen::get();
362 - $is_block_editor = $screen && $screen->is_block_editor();
361 + $is_block_editor = YoastSEO()->helpers->current_page->is_block_editor();
363 362 if ( $is_block_editor && $this->get_metabox_post()->post_type === 'post' ) {
364 363 /**
365 364 * Filter: 'wpseo_enable_ai_content_planner_inline_banner' - Allows hiding the AI Content Planner inline banner site-wide.
366 365 *
@@ -800,9 +799,9 @@
800 799 *
801 800 * @return bool Whether the given meta value key is disabled.
802 801 */
803 802 public function is_meta_value_disabled( $key ) {
804 - if ( $key === 'linkdex' && ! $this->seo_analysis->is_enabled() ) {
803 + if ( in_array( $key, [ 'linkdex', 'seo_title_score', 'meta_description_score' ], true ) && ! $this->seo_analysis->is_enabled() ) {
805 804 return true;
806 805 }
807 806
808 807 if ( $key === 'content_score' && ! $this->readability_analysis->is_enabled() ) {
@@ -861,9 +860,9 @@
861 860 $asset_manager->enqueue_style( 'monorepo' );
862 861 $asset_manager->enqueue_style( 'ai-generator' );
863 862 $asset_manager->enqueue_style( 'ai-fix-assessments' );
864 863
865 - $is_block_editor = WP_Screen::get()->is_block_editor();
864 + $is_block_editor = YoastSEO()->helpers->current_page->is_block_editor();
866 865 $post_edit_handle = 'post-edit';
867 866 if ( ! $is_block_editor ) {
868 867 $post_edit_handle = 'post-edit-classic';
869 868 }