Ticket #55023: 55023.diff
File 55023.diff, 1.9 KB (added by , 2 years ago) |
---|
-
src/wp-includes/theme-compat/footer.php
6 6 * 7 7 * This file is here for backward compatibility with old themes and will be removed in a future version 8 8 */ 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 ); 9 if ( ! 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 } 17 19 ?> 18 20 19 21 <hr /> -
src/wp-includes/theme-compat/header.php
6 6 * 7 7 * This file is here for backward compatibility with old themes and will be removed in a future version. 8 8 */ 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 ); 9 if ( ! 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 } 17 19 ?> 18 20 <!DOCTYPE html> 19 21 <html <?php language_attributes(); ?>>