diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-09-28 10:38:42 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-09-28 10:38:42 +0000 |
commit | af888818be0a594d66e0ab363e6659e6dabbb421 (patch) | |
tree | 1d6719a3892ff3e222e1bc0ffc20564b23b6eccc /wp-includes/wpmu-functions.php | |
parent | 29c2072f5e5b03828c3bfa2af0b1c1cc3fe30923 (diff) | |
download | wordpress-mu-af888818be0a594d66e0ab363e6659e6dabbb421.tar.gz wordpress-mu-af888818be0a594d66e0ab363e6659e6dabbb421.tar.xz wordpress-mu-af888818be0a594d66e0ab363e6659e6dabbb421.zip |
Filter blog list (fixes #163)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@778 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r-- | wp-includes/wpmu-functions.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 25df62d..702f7c0 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -570,12 +570,9 @@ function get_blog_list( $start = 0, $num = 10, $display = true ) { if( $update == true ) { unset( $blogs ); - $blogs = $wpdb->get_results( "SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = '$wpdb->siteid' ORDER BY registered DESC", ARRAY_A ); + $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' ORDER BY registered DESC", ARRAY_A ); if( is_array( $blogs ) ) { while( list( $key, $details ) = each( $blogs ) ) { - if( is_archived( $details[ 'blog_id' ] ) == '1' ) - unset( $blogs[ $key ] ); - $blog_list[ $details[ 'blog_id' ] ] = $details; $blog_list[ $details[ 'blog_id' ] ][ 'postcount' ] = $wpdb->get_var( "SELECT count(*) FROM " . $wpmuBaseTablePrefix . $details[ 'blog_id' ] . "_posts WHERE post_status='publish' AND post_type='post'" ); } |