Don't init widgets if the blog isn't installed yet. fixes #4504

git-svn-id: http://svn.automattic.com/wordpress/trunk@5747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-06-23 05:32:16 +00:00
parent bf8b03a928
commit ad9271f86f
1 changed files with 3 additions and 0 deletions

View File

@ -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 );