Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15599 closed defect (bug) (fixed)

Update check on multisite should use get_user_count()

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

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 16 years ago.

Download all attachments as: .zip

Change History (4)

@PeteMall
16 years ago

#1 @PeteMall
16 years ago

  • Keywords has-patch added

#2 @ryan
16 years ago

Looks good.

#3 @nacin
16 years ago

  • Resolutionfixed
  • Status newclosed

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

Note: See TracTickets for help on using tickets.