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:
parent
d62b91f228
commit
53bdf5bffc
|
@ -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