From f3de8f4aab2e6ffda45294b8790bfce73a41f4ff Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sat, 23 Jun 2007 05:32:16 +0000 Subject: [PATCH] Don't init widgets if the blog isn't installed yet. fixes #4504 git-svn-id: https://develop.svn.wordpress.org/trunk@5747 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/widgets.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/widgets.php b/wp-includes/widgets.php index 1f0b0075e1..a8ba3c9ae9 100644 --- a/wp-includes/widgets.php +++ b/wp-includes/widgets.php @@ -1082,6 +1082,9 @@ function wp_widget_rss_register() { } function wp_widgets_init() { + if ( !is_blog_installed() ) + return; + $GLOBALS['wp_register_widget_defaults'] = true; $dims90 = array( 'height' => 90, 'width' => 300 );