get_blog_list [ WordPress Function ]
get_blog_list ( $start = 0, $num = 10, $deprecated = '' )
| Defined at: |
|
No description yet.
Source
<?php
function get_blog_list( $start = 0, $num = 10, $deprecated = '' ) {
_deprecated_function( __FUNCTION__, '3.0' );
global $wpdb;
$blogs = $wpdb->get_results( $wpdb->prepare("SELECT blog_id, domain, path FROM $wpdb->blogs WHERE site_id = %d AND public = '1' AND archived = '0' AND mature = '0' AND spam = '0' AND deleted = '0' ORDER BY registered DESC", $wpdb->siteid), ARRAY_A );
foreach ( (array) $blogs as $details ) {
$blog_list[ $details['blog_id'] ] = $details;
$blog_list[ $details['blog_id'] ]['postcount'] = $wpdb->get_var( "SELECT COUNT(ID) FROM " . $wpdb->get_blog_prefix( $details['blog_id'] ). "posts WHERE post_status='publish' AND post_type='post'" );
}
unset( $blogs );
$blogs = $blog_list;
if ( false == is_array( $blogs ) )
return array();
if ( $num == 'all' )
return array_slice( $blogs, $start, count( $blogs ) );
else
return array_slice( $blogs, $start, $num );
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- WPMU Functions/get blog list « WordPress Codex
This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions.
codex.wordpress.org - WordPress › Support » replacement for get_blog_list?
I see in the codex that get_blog_list has been marked as depriciated, however i do not see a replacement for it... can anyone point me in the right direction?
wordpress.org - get_blog_list mapped domains
in the case of a multisite network being on mydomain.tld with a sub-site of blog1. mydomain.tld and a mapped domain of blog1.tld $blog_list ...
premium.wpmudev.org - WP3 multisites | Social Ink: Web Design for Nonprofit & Small Business
Jun 24, 2010 ... One of Social Ink's favorite features of Wordpress 3 is the "Multisite" feature. Web Design for Nonprofits and Small Businesses with Wordpress ...
www.social-ink.net