WordPress.org

Make WordPress Core

Ticket #37865: 37865.diff

File 37865.diff, 930 bytes (added by flixos90, 5 years ago)
  • src/wp-includes/ms-functions.php

     
    109109 * The count is cached and updated twice daily. This is not a live count.
    110110 *
    111111 * @since MU 1.0
     112 * @since 3.7.0 The $network_id parameter has been deprecated.
     113 * @since 4.7.0 The $network_id parameter is now being used.
    112114 *
    113  * @param int $network_id Deprecated, not supported.
     115 * @param int $network_id ID of the network. Can be null to default to the current network ID. Default null.
    114116 * @return int
    115117 */
    116 function get_blog_count( $network_id = 0 ) {
    117         if ( func_num_args() )
    118                 _deprecated_argument( __FUNCTION__, '3.1.0' );
    119 
    120         return get_site_option( 'blog_count' );
     118function get_blog_count( $network_id = null ) {
     119        return get_network_option( $network_id, 'blog_count' );
    121120}
    122121
    123122/**