From ed8feb29122be758d0b648a8d7a00b7ca81e5833 Mon Sep 17 00:00:00 2001 From: Andrew Ozz 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: https://develop.svn.wordpress.org/trunk@19449 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 e2ddc1c29c..48aad40615 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.' ); ?>

-
- -