summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-25 19:46:31 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-07-25 19:46:31 +0000
commit387cfc78becd2f806dc5f562d5d0ea49e1ed46d7 (patch)
treea69cd3b49af388e813c6407e95fa6d3c5b8ec915
parentbe7b9de1068d6143cf380d76faa8d0f73019b2da (diff)
downloadwordpress-mu-387cfc78becd2f806dc5f562d5d0ea49e1ed46d7.tar.gz
wordpress-mu-387cfc78becd2f806dc5f562d5d0ea49e1ed46d7.tar.xz
wordpress-mu-387cfc78becd2f806dc5f562d5d0ea49e1ed46d7.zip
Hide sql errors from plugins.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@77 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--wp-inst/wp-settings.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/wp-inst/wp-settings.php b/wp-inst/wp-settings.php
index 93f3a36..5cc3d63 100644
--- a/wp-inst/wp-settings.php
+++ b/wp-inst/wp-settings.php
@@ -151,15 +151,15 @@ require (ABSPATH . WPINC . '/version.php');
require_once( ABSPATH . WPINC . '/wpmu-functions.php' );
-$plugins = glob( ABSPATH . 'wp-content/mu-plugins/*.php');
-
-if( $plugins ) {
- foreach ( $plugins as $plugin ) {
- if( is_file( $plugin ) )
- include_once( $plugin );
- }
+$wpdb->hide_errors();
+$plugins = glob( ABSPATH . 'wp-content/mu-plugins/*.php' );
+if( is_array( $plugins ) ) {
+ foreach ( $plugins as $plugin ) {
+ if( is_file( $plugin ) )
+ include_once( $plugin );
+ }
}
-
+$wpdb->show_errors();
$is_archived = get_settings( "is_archived" );
if( $is_archived == 'yes' ) {