From b02db0626b75c2fdd0033df9de776170bff006d2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 21 Apr 2012 21:23:27 +0000 Subject: [PATCH] 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 --- wp-admin/theme-editor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 3ea3c4ae50..84a48a9a6f 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -158,6 +158,10 @@ foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_them
+errors() ) + echo '

' . __( 'This theme is broken.' ) . ' ' . $theme->errors()->get_error_message() . '

'; +?>