diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-04-08 14:50:50 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2008-04-08 14:50:50 +0000 |
commit | c4f5e9ba65a9d9b5b9fa23ab0fc48211b53036c6 (patch) | |
tree | 1998993072bb0cbb60655dd2be7b7f4b41c99c4e /wp-includes/wpmu-functions.php | |
parent | 5549ea980144ba198286402a5e584946b9489b55 (diff) | |
download | wordpress-mu-c4f5e9ba65a9d9b5b9fa23ab0fc48211b53036c6.tar.gz wordpress-mu-c4f5e9ba65a9d9b5b9fa23ab0fc48211b53036c6.tar.xz wordpress-mu-c4f5e9ba65a9d9b5b9fa23ab0fc48211b53036c6.zip |
suppress errors to hide install post query failure
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1220 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r-- | wp-includes/wpmu-functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 66e2363..55bc7e0 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1295,10 +1295,11 @@ function insert_blog($domain, $path, $site_id) { // Install an empty blog. wpdb should already be switched. function install_blog($blog_id, $blog_title = '') { global $wpdb, $table_prefix, $wp_roles; - $wpdb->hide_errors(); require_once( ABSPATH . 'wp-admin/includes/upgrade.php'); + $wpdb->suppress_errors(); $installed = $wpdb->get_results("SELECT * FROM $wpdb->posts"); + $wpdb->suppress_errors( false); if ($installed) die(__('<h1>Already Installed</h1><p>You appear to have already installed WordPress. To reinstall please clear your old database tables first.</p>') . '</body></html>'); $url = get_blogaddress_by_id($blog_id); |