From 029e4cf3a64e9f80a2cf792574eaed72f39e7cdf Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Thu, 15 Aug 2013 03:13:05 +0000 Subject: [PATCH] Remove references to unused globals. props jeremyfelt. fixes #24984. Built from https://develop.svn.wordpress.org/trunk@25018 git-svn-id: http://core.svn.wordpress.org/trunk@25009 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-functions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index f29152a3d4..5cc515a2ca 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -17,8 +17,6 @@ * @return array Site and user count for the network. */ function get_sitestats() { - global $wpdb; - $stats = array( 'blogs' => get_blog_count(), 'users' => get_user_count(), @@ -815,7 +813,7 @@ function wpmu_signup_user_notification($user, $user_email, $key, $meta = '') { * @return array An array containing information about the activated user and/or blog */ function wpmu_activate_signup($key) { - global $wpdb, $current_site; + global $wpdb; $signup = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->signups WHERE activation_key = %s", $key) ); @@ -1608,7 +1606,6 @@ function signup_nonce_check( $result ) { * @since MU */ function maybe_redirect_404() { - global $current_site; if ( is_main_site() && is_404() && defined( 'NOBLOGREDIRECT' ) && ( $destination = apply_filters( 'blog_redirect_404', NOBLOGREDIRECT ) ) ) { if ( $destination == '%siteurl%' ) $destination = network_home_url();