Changeset 23664 for trunk/wp-admin/includes/ms.php
- Timestamp:
- 03/12/2013 09:19:55 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/ms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r23619 r23664 696 696 <?php 697 697 } 698 699 /**700 * Whether or not we have a large network.701 *702 * The default criteria for a large network is either more than 10,000 users or more than 10,000 sites.703 * Plugins can alter this criteria using the 'wp_is_large_network' filter.704 *705 * @since 3.3.0706 * @param string $using 'sites or 'users'. Default is 'sites'.707 * @return bool True if the network meets the criteria for large. False otherwise.708 */709 function wp_is_large_network( $using = 'sites' ) {710 if ( 'users' == $using ) {711 $count = get_user_count();712 return apply_filters( 'wp_is_large_network', $count > 10000, 'users', $count );713 }714 715 $count = get_blog_count();716 return apply_filters( 'wp_is_large_network', $count > 10000, 'sites', $count );717 }
Note: See TracChangeset
for help on using the changeset viewer.