WordPress.org

Make WordPress Core

Ticket #45057: 45057.4.diff

File 45057.4.diff, 556 bytes (added by desrosj, 3 years ago)
  • src/wp-admin/includes/misc.php

     
    15631563         * @param WP_Post|null $post The currently edited post. Default null.
    15641564         */
    15651565        public static function notice( $post = null ) {
     1566                $screen = get_current_screen();
     1567
     1568                if ( ! $screen->is_block_editor && 'post' != $screen->base ) {
     1569                        return;
     1570                }
     1571
    15661572                $post = get_post( $post );
    15671573
    15681574                if ( ! ( $post instanceof WP_Post ) ) {