mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Issue a 'This theme is broken' error (when applicable) on the theme editor. see #20103.
git-svn-id: https://develop.svn.wordpress.org/trunk@20560 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a63f87682d
commit
b02db0626b
@ -158,6 +158,10 @@ foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_them
|
||||
</div>
|
||||
<br class="clear" />
|
||||
</div>
|
||||
<?php
|
||||
if ( $theme->errors() )
|
||||
echo '<div class="error"><p><strong>' . __( 'This theme is broken.' ) . '</strong> ' . $theme->errors()->get_error_message() . '</p></div>';
|
||||
?>
|
||||
<div id="templateside">
|
||||
<?php
|
||||
if ( $allowed_files ) :
|
||||
|
||||
Loading…
Reference in New Issue
Block a user