Changeset 52940 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 03/16/2022 06:28:46 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r52929 r52940 339 339 if ( ! $this->template ) { 340 340 $this->template = $this->stylesheet; 341 if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) { 341 $theme_path = $this->theme_root . '/' . $this->stylesheet; 342 343 if ( ! file_exists( $theme_path . '/templates/index.html' ) 344 && ! file_exists( $theme_path . '/index.php' ) 345 ) { 342 346 $error_message = sprintf( 343 /* translators: 1: index.php, 2: Documentation URL, 3: style.css */ 344 __( '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.' ), 347 /* translators: 1: templates/index.html, 2: index.php, 3: Documentation URL, 4: style.css */ 348 __( 'Template is missing. Standalone themes need to have a %1$s or %2$s template file. <a href="%3$s">Child themes</a> need to have a Template header in the %4$s stylesheet.' ), 349 '<code>templates/index.html</code>', 345 350 '<code>index.php</code>', 346 351 __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
Note: See TracChangeset
for help on using the changeset viewer.