From e8638a517a2ac135682d9b5cdfff704721a4ca60 Mon Sep 17 00:00:00 2001 From: azaozz Date: Thu, 24 Nov 2011 17:44:53 +0000 Subject: [PATCH] Move the check whether the theme supports widgets before we register any extra sidebars, fixes #19352 git-svn-id: http://svn.automattic.com/wordpress/trunk@19449 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/widgets.php | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index e2ddc1c29..48aad4061 100644 --- a/wp-admin/widgets.php +++ b/wp-admin/widgets.php @@ -63,6 +63,25 @@ get_current_screen()->set_help_sidebar( '

' . __('Support Forums') . '

' ); +if ( empty($wp_registered_sidebars) ) { + // the theme has no sidebars, die. + require_once( './admin-header.php' ); +?> + +
+ +

+
+

+
+

follow these instructions.' ); ?>

+
+ + - -
- -

-
-

-
-

follow these instructions.' ); ?>

-
- -