Ticket #55429: json.patch
File json.patch, 2.0 KB (added by , 2 years ago) |
---|
-
.editorconfig
17 17 indent_style = space 18 18 indent_size = 2 19 19 20 [*.json] 21 indent_style = space 22 indent_size = 4 23 20 24 [*.md] 21 25 trim_trailing_whitespace = false 22 26 -
src/wp-includes/class-wp-theme.php
338 338 339 339 if ( ! $this->template ) { 340 340 $this->template = $this->stylesheet; 341 if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) { 341 342 $index_php_path = $this->theme_root . '/' . $this->stylesheet . '/index.php'; 343 $index_html_path = $this->theme_root . '/' . $this->stylesheet . '/templates/index.html'; 344 345 if ( ! file_exists( $index_php_path ) && ! file_exists( $index_html_path ) ) { 342 346 $error_message = sprintf( 343 347 /* translators: 1: index.php, 2: Documentation URL, 3: style.css */ 344 348 __( 'Template is missing. Standalone themes need to have a %1$s template file. <a href="%2$s">Child themes</a> need to have a Template header in the %3$s stylesheet.' ), 345 '<code>index.php</code> ',349 '<code>index.php</code> or <code>templates/index.html</code>', 346 350 __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ), 347 351 '<code>style.css</code>' 348 352 ); -
src/wp-includes/theme.php
857 857 return true; 858 858 } 859 859 860 if ( ! file_exists( get_template_directory() . '/index.php' ) ) {860 if ( ! file_exists( get_template_directory() . '/index.php' ) && ! file_exists( get_template_directory() . '/templates/index.html' ) ) { 861 861 // Invalid. 862 862 } elseif ( ! file_exists( get_template_directory() . '/style.css' ) ) { 863 863 // Invalid.