Issue a 'This theme is broken' error (when applicable) on the theme editor. see #20103.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-04-21 21:23:27 +00:00
parent d62b91f228
commit 53bdf5bffc
1 changed files with 4 additions and 0 deletions

View File

@ -158,6 +158,10 @@ foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_them
</div> </div>
<br class="clear" /> <br class="clear" />
</div> </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"> <div id="templateside">
<?php <?php
if ( $allowed_files ) : if ( $allowed_files ) :