From 53bdf5bffc462075c1f4729c4aa9a145d030df76 Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@20560 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 3ea3c4ae5..84a48a9a6 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() . '

'; +?>