Ticket #55023: 55023.wip.diff
File 55023.wip.diff, 3.9 KB (added by , 2 years ago) |
---|
-
src/wp-includes/block-template.php
109 109 // Add viewport meta tag. 110 110 add_action( 'wp_head', '_block_template_viewport_meta_tag', 0 ); 111 111 112 // Render title tag with content, regardless of whether theme has title-tag support.113 remove_action( 'wp_head', '_wp_render_title_tag', 1 ); // Remove conditional title tag rendering...114 add_action( 'wp_head', '_block_template_render_title_tag', 1 ); // ...and make it unconditional.115 116 112 // This file will be included instead of the theme's template file. 117 113 return ABSPATH . WPINC . '/template-canvas.php'; 118 114 } -
src/wp-includes/general-template.php
1282 1282 * @ignore 1283 1283 * @since 4.1.0 1284 1284 * @since 4.4.0 Improved title output replaced `wp_title()`. 1285 * @since 6.1.0 Made all block themes support title tag without needing to declare it. 1285 1286 * @access private 1286 1287 */ 1287 1288 function _wp_render_title_tag() { 1288 if ( ! current_theme_supports( 'title-tag' ) ) {1289 if ( ! current_theme_supports( 'title-tag' ) && ! wp_is_block_theme() ) { 1289 1290 return; 1290 1291 } 1291 1292 -
src/wp-includes/script-loader.php
2463 2463 * @return bool Whether separate assets will be loaded. 2464 2464 */ 2465 2465 function wp_should_load_separate_core_block_assets() { 2466 if ( is_admin() || is_feed() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) {2466 if ( is_admin() || is_feed() || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) || ( is_multisite() && ( strpos( $_SERVER['PHP_SELF'], 'wp-signup.php' ) || strpos( $_SERVER['PHP_SELF'], 'wp-activate.php' ) ) ) ) { 2467 2467 return false; 2468 2468 } 2469 2469 -
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 if ( wp_is_block_theme() ) : 10 ?> 11 <footer class="wp-block-template-part"> 12 <?php block_footer_area(); ?> 13 </footer> 14 </div> 15 <?php 16 else: 17 9 18 _deprecated_file( 10 19 /* translators: %s: Template name. */ 11 20 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), … … 35 44 <!-- Gorgeous design by Michael Heilemann - http://binarybonsai.com/ --> 36 45 <?php /* "Just what do you think you're doing Dave?" */ ?> 37 46 38 <?php wp_footer(); ?> 47 48 <?php endif; // wp_is_block_theme() ?> 49 <?php wp_footer(); ?> 39 50 </body> 40 51 </html> -
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 if ( wp_is_block_theme() ) : 10 ?> 11 <!DOCTYPE html> 12 <html <?php language_attributes(); ?>> 13 <head> 14 <meta charset="<?php bloginfo( 'charset' ); ?>" /> 15 <meta name="viewport" content="width=device-width, initial-scale=1" /> 16 <?php wp_head(); ?> 17 </head> 18 19 <body <?php body_class(); ?>> 20 <?php wp_body_open(); ?> 21 22 <div class="wp-site-blocks"> 23 24 <header class="wp-block-template-part"> 25 <?php block_header_area(); ?> 26 </header> 27 28 <?php 29 30 else: 31 9 32 _deprecated_file( 10 33 /* translators: %s: Template name. */ 11 34 sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ), … … 58 81 </div> 59 82 </div> 60 83 <hr /> 84 85 <?php 86 endif;