WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#15599 closed defect (bug) (fixed)

Update check on multisite should use get_user_count()

Reported by: nacin Owned by:
Milestone: 3.1 Priority: normal
Severity: normal Version:
Component: Multisite Keywords: has-patch
Focuses: Cc:

Description

count_users() is intensive, and it's also not the right query, because it only counts the current blog. We should leverage get_user_count() when running multisite in wp_version_check().

Attachments (1)

15599.diff (713 bytes) - added by PeteMall 6 years ago.

Download all attachments as: .zip

Change History (4)

@PeteMall
6 years ago

#1 @PeteMall
6 years ago

  • Keywords has-patch added

#2 @ryan
6 years ago

Looks good.

#3 @nacin
6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [16604]) Use get_user_count() if multisite in wp_version_check. props PeteMall, fixes #15599.

Note: See TracTickets for help on using tickets.