Changeset 18871 for trunk/wp-admin/includes/ms.php
- Timestamp:
- 10/03/2011 04:30:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r18504 r18871 776 776 } 777 777 778 /** 779 * Whether or not we have a large network. 780 * 781 * The default criteria for a large network is either more than 10,000 users or more than 10,000 sites. 782 * Plugins can alter this criteria using the 'wp_is_large_network' filter. 783 * 784 * @since 3.3.0 785 * @param string $using 'sites or 'users'. Default is 'sites'. 786 * @return bool True if the network meets the criteria for large. False otherwise. 787 */ 788 function wp_is_large_network( $using = 'sites' ) { 789 if ( 'users' == $using ) { 790 $count = get_user_count(); 791 return apply_filters( 'wp_is_large_network', $count > 10000, 'users', $count ); 792 } 793 794 $count = get_blog_count(); 795 return apply_filters( 'wp_is_large_network', $count > 10000, 'sites', $count ); 796 } 778 797 ?>
Note: See TracChangeset
for help on using the changeset viewer.