Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #38741, comment 34


Ignore:
Timestamp:
05/29/2018 05:29:29 PM (6 years ago)
Author:
flixos90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38741, comment 34

    initial v1  
    22
    33* Multisite's `get_user_count()` has historically contained the global user count already. While it's stored on every network, it is actually a global count. Let's make this function available for single site.
    4     * The function supports an optional `$network_id` parameter. This was just recently introduced (by myself, and I regret it given these circumstances), so we can deprecate it again. This should no longer be considered a network-specific function.
     4    * The function supports an optional `$network_id` parameter. This was just recently introduced (by myself, and I regret it given these circumstances), and it doesn't affect the outcome of the function, so we can deprecate it again. This should no longer be considered a network-specific function.
    55    * On single-site, the `user_count` should be stored as a regular option. When setting up multisite, it should be migrated to become a network setting.
    66* `wp_is_large_user_count()` should be introduced as a globally available function to check the user count. It should call `get_user_count()` to get its value and use 10000 as a maximum border by default. A filter should be present to modify the result of this function.