From 086c5a8ab882005ae1686c8c62907bd2da4c3ccc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 24 Aug 2013 02:41:11 +0000 Subject: [PATCH] Deprecate $network_id argument in get_blog_count(). props jeremyfelt. fixes #25129. git-svn-id: https://develop.svn.wordpress.org/trunk@25113 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-functions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php index dafdea5a83..6722d4f727 100644 --- a/src/wp-includes/ms-functions.php +++ b/src/wp-includes/ms-functions.php @@ -136,10 +136,13 @@ function get_user_count() { * * @since MU 1.0 * - * @param int $id Optional. A site_id. + * @param int $network_id Deprecated, not supported. * @return int */ -function get_blog_count( $id = 0 ) { +function get_blog_count( $network_id = 0 ) { + if ( func_num_args() ) + _deprecated_argument( __FUNCTION__, '3.1' ); + return get_site_option( 'blog_count' ); }