summaryrefslogtreecommitdiffstats
path: root/wp-includes/wpmu-functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r--wp-includes/wpmu-functions.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index b003adc..f40579d 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -502,13 +502,7 @@ function get_blog_status( $id, $pref ) {
function get_last_updated( $display = false ) {
global $wpdb;
- $blogs = $wpdb->get_results( "SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = '$wpdb->siteid' AND last_updated != '0000-00-00 00:00:00' ORDER BY last_updated DESC limit 0,40", ARRAY_A );
- if( is_array( $blogs ) ) {
- while( list( $key, $details ) = each( $blogs ) ) {
- if( get_blog_status( $details[ 'blog_id' ], 'archived' ) == '1' )
- unset( $blogs[ $key ] );
- }
- }
+ $blogs = $wpdb->get_results( "SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = '$wpdb->siteid' AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' AND last_updated != '0000-00-00 00:00:00' ORDER BY last_updated DESC limit 0,40", ARRAY_A );
return $blogs;
}
@@ -1365,4 +1359,9 @@ SITE_NAME" );
wp_mail($user->user_email, $subject, $message, $message_headers);
}
+function get_current_site() {
+ global $current_site;
+ return $current_site;
+}
+
?>