Skip to content

Commit

Permalink
Merge pull request #5575 from Automattic/fix/set-sentinal-value-for-l…
Browse files Browse the repository at this point in the history
…arge-sites

Set the user count to -1 for very large networks
  • Loading branch information
gravityrail committed Nov 10, 2016
2 parents d4688dc + bc1d445 commit 1414d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.jetpack.php
Expand Up @@ -2856,7 +2856,7 @@ private static function get_site_user_count() {

if ( function_exists( 'wp_is_large_network' ) ) {
if ( wp_is_large_network( 'users' ) ) {
return 10101; // Not a real value but should tell us that we are dealing with a large network.
return -1; // Not a real value but should tell us that we are dealing with a large network.
}
}
if ( false === ( $user_count = get_transient( 'jetpack_site_user_count' ) ) ) {
Expand Down

0 comments on commit 1414d97

Please sign in to comment.