Permalink
Browse files

Issue a 'This theme is broken' error (when applicable) on the theme e…

…ditor. see #20103.

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

0 comments on commit 53bdf5b

Please sign in to comment.