Changeset 12304 for branches/4.0/src/bp-core/bp-core-functions.php
- Timestamp:
- 12/03/2018 08:53:09 PM (6 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/bp-core/bp-core-functions.php
r12286 r12304 3901 3901 return preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string ); 3902 3902 } 3903 3904 /** 3905 * Checks whether the current installation is "large". 3906 * 3907 * By default, an installation counts as "large" if there are 10000 users or more. 3908 * Filter 'bp_is_large_install' to adjust. 3909 * 3910 * @since 4.1.0 3911 * 3912 * @return bool 3913 */ 3914 function bp_is_large_install() { 3915 // Use the Multisite function if available. 3916 if ( function_exists( 'wp_is_large_network' ) ) { 3917 $is_large = wp_is_large_network( 'users' ); 3918 } else { 3919 $is_large = bp_core_get_total_member_count() > 10000; 3920 } 3921 3922 /** 3923 * Filters whether the current installation is "large". 3924 * 3925 * @since 4.1.0 3926 * 3927 * @param bool $is_large True if the network is "large". 3928 */ 3929 return (bool) apply_filters( 'bp_is_large_install', $is_large ); 3930 }
Note: See TracChangeset
for help on using the changeset viewer.