base && RequestPostType::NAME === $screen->post_type ) { wp_add_inline_script( 'mce-view', 'window.wp && wp.mce && wp.mce.views && wp.mce.views.unregister( "embedURL" );' ); } } /** * Leaves requests out of the post types whose addresses WordPress fetches ahead, when * someone opens the classic editor. * * @param string[] $post_types Post types. * @return string[] */ public static function without_requests( array $post_types ): array { return array_diff( $post_types, [ RequestPostType::NAME ] ); } }