mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Suppress logging of DB errors when checking if blog is installed. see #5771
git-svn-id: https://develop.svn.wordpress.org/trunk@7269 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -957,9 +957,9 @@ function is_blog_installed() {
|
||||
if ( wp_cache_get('is_blog_installed') )
|
||||
return true;
|
||||
|
||||
$show = $wpdb->hide_errors();
|
||||
$suppress = $wpdb->suppress_errors();
|
||||
$installed = $wpdb->get_var( "SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'" );
|
||||
$wpdb->show_errors($show);
|
||||
$wpdb->suppress_errors($suppress);
|
||||
|
||||
$installed = !empty( $installed ) ? true : false;
|
||||
wp_cache_set('is_blog_installed', $installed);
|
||||
|
||||
Reference in New Issue
Block a user