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
This commit is contained in:
parent
2cf3ba38f6
commit
f3de8f4aab
@ -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
Block a user