Make WordPress Core

Ticket #55023: 55023.diff

File 55023.diff, 1.9 KB (added by sabernhardt, 2 years ago)

removes the deprecation notice from block themes

  • src/wp-includes/theme-compat/footer.php

     
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version
    88 */
    9 _deprecated_file(
    10         /* translators: %s: Template name. */
    11         sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
    12         '3.0.0',
    13         null,
    14         /* translators: %s: Template name. */
    15         sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
    16 );
     9if ( ! wp_is_block_theme() ) {
     10        _deprecated_file(
     11                /* translators: %s: Template name. */
     12                sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
     13                '3.0.0',
     14                null,
     15                /* translators: %s: Template name. */
     16                sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
     17        );
     18}
    1719?>
    1820
    1921<hr />
  • src/wp-includes/theme-compat/header.php

     
    66 *
    77 * This file is here for backward compatibility with old themes and will be removed in a future version.
    88 */
    9 _deprecated_file(
    10         /* translators: %s: Template name. */
    11         sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
    12         '3.0.0',
    13         null,
    14         /* translators: %s: Template name. */
    15         sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
    16 );
     9if ( ! wp_is_block_theme() ) {
     10        _deprecated_file(
     11                /* translators: %s: Template name. */
     12                sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
     13                '3.0.0',
     14                null,
     15                /* translators: %s: Template name. */
     16                sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
     17        );
     18}
    1719?>
    1820<!DOCTYPE html>
    1921<html <?php language_attributes(); ?>>