WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 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 5 years ago.

Download all attachments as: .zip

Change History (4)

@PeteMall5 years ago

comment:1 @PeteMall5 years ago

  • Keywords has-patch added

comment:2 @ryan5 years ago

Looks good.

comment:3 @nacin5 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.