Skip to content

Commit

Permalink
Issue a 'This theme is broken' error (when applicable) on the theme e…
Browse files Browse the repository at this point in the history
…ditor. see #20103.

git-svn-id: http://svn.automattic.com/wordpress/trunk@20560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
nacin committed Apr 21, 2012
1 parent d62b91f commit 53bdf5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wp-admin/theme-editor.php
Expand Up @@ -158,6 +158,10 @@
</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 ) :
Expand Down

0 comments on commit 53bdf5b

Please sign in to comment.