Opened 7 years ago
Closed 7 years ago
#40349 closed enhancement (fixed)
Add network ID parameter to wp_update_network_user_counts()
Reported by: | flixos90 | Owned by: | flixos90 |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Networks and Sites | Keywords: | has-patch has-unit-tests commit |
Focuses: | multisite | Cc: |
Description
While user counts are currently global, they are stored per network. At some point in the future there might be actual network user counts, and we should make sure the infrastructure is flexible enough.
Therefore I'm proposing to add a $network_id
parameter to wp_update_network_user_counts()
, similar as proposed in #37528.
The related function get_user_count()
was enhanced in a similar way (see #37866).
Attachments (2)
Change History (5)
#2
@
7 years ago
- Keywords commit added
- Owner set to flixos90
- Status changed from new to assigned
40349.2.diff makes the unit tests more precise.
Note: See
TracTickets for help on using
tickets.
40349.diff adds the parameter and a unit test for it.