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:
Andrew Nacin 2012-04-21 21:23:27 +00:00
parent a63f87682d
commit b02db0626b

View File

@ -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 ) :