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:
parent
bf8b03a928
commit
ad9271f86f
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue