WordPress.org

Make WordPress Core

#43692 closed enhancement (fixed)

Add Limit 1 to User query

Reported by: spacedmonkey Owned by: SergeyBiryukov
Milestone: 5.1 Priority: normal
Severity: normal Version: 3.3
Component: Users Keywords: has-patch
Focuses: performance Cc:

Description

Add limit 1 to SQL query in WP_User class, as only one row is requested.

Attachments (1)

43692.diff (460 bytes) - added by spacedmonkey 16 months ago.

Download all attachments as: .zip

Change History (5)

@spacedmonkey
16 months ago

#1 @SergeyBiryukov
10 months ago

  • Component changed from General to Users
  • Milestone changed from Awaiting Review to 4.9.9
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @SergeyBiryukov
10 months ago

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

In 43651:

Users: Add LIMIT 1 to SQL query in WP_User::get_data_by(), as only one row is requested.

Props spacedmonkey.
Fixes #43692.

#3 @SergeyBiryukov
10 months ago

  • Keywords fixed-major added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopening for 4.9.9 consideration.

Last edited 10 months ago by SergeyBiryukov (previous) (diff)

#4 @pento
10 months ago

  • Keywords fixed-major removed
  • Milestone changed from 4.9.9 to 5.1
  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.