diff --git src/wp-admin/network/themes.php src/wp-admin/network/themes.php
index 29dd9e5..9466c41 100644
|
|
if ( isset( $_GET['enabled'] ) ) { |
287 | 287 | $wp_list_table->views(); |
288 | 288 | |
289 | 289 | if ( 'broken' == $status ) |
290 | | echo '<p class="clear">' . __('The following themes are installed but incomplete. Themes must have a stylesheet and a template.') . '</p>'; |
| 290 | echo '<p class="clear">' . __( 'The following themes are installed but incomplete.' ) . '</p>'; |
291 | 291 | ?> |
292 | 292 | |
293 | 293 | <form method="post"> |
diff --git src/wp-admin/themes.php src/wp-admin/themes.php
index d229d92..d964fc2 100644
|
|
if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_ |
295 | 295 | |
296 | 296 | <div class="broken-themes"> |
297 | 297 | <h3><?php _e('Broken Themes'); ?></h3> |
298 | | <p><?php _e('The following themes are installed but incomplete. Themes must have a stylesheet and a template.'); ?></p> |
| 298 | <p><?php _e( 'The following themes are installed but incomplete.' ); ?></p> |
299 | 299 | |
300 | 300 | <?php |
301 | 301 | $can_delete = current_user_can( 'delete_themes' ); |
diff --git src/wp-includes/class-wp-theme.php src/wp-includes/class-wp-theme.php
index bdd4084..e55dd5f 100644
|
|
final class WP_Theme implements ArrayAccess { |
268 | 268 | if ( ! $this->template && ! ( $this->template = $this->headers['Template'] ) ) { |
269 | 269 | $this->template = $this->stylesheet; |
270 | 270 | if ( ! file_exists( $this->theme_root . '/' . $this->stylesheet . '/index.php' ) ) { |
271 | | $this->errors = new WP_Error( 'theme_no_index', __( 'Template is missing.' ) ); |
| 271 | $error_message = sprintf( |
| 272 | __( '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.' ), |
| 273 | '<code>index.php</code>', |
| 274 | __( 'https://codex.wordpress.org/Child_Themes' ), |
| 275 | '<code>style.css</code>' |
| 276 | ); |
| 277 | $this->errors = new WP_Error( 'theme_no_index', $error_message ); |
272 | 278 | $this->cache_add( 'theme', array( 'headers' => $this->headers, 'errors' => $this->errors, 'stylesheet' => $this->stylesheet, 'template' => $this->template ) ); |
273 | 279 | return; |
274 | 280 | } |