Introduce wp_get_sites(), a long-awaited replacement for get_blog_list().
props jeremyfelt. see #14511. Built from https://develop.svn.wordpress.org/trunk@25445 git-svn-id: http://core.svn.wordpress.org/trunk@25366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -161,7 +161,7 @@ function validate_email( $email, $check_domain = true) {
|
||||
* @deprecated No alternative available. For performance reasons this function is not recommended.
|
||||
*/
|
||||
function get_blog_list( $start = 0, $num = 10, $deprecated = '' ) {
|
||||
_deprecated_function( __FUNCTION__, '3.0' );
|
||||
_deprecated_function( __FUNCTION__, '3.0', 'wp_get_sites()' );
|
||||
|
||||
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 );
|
||||
|
||||
Reference in New Issue
Block a user