Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#43692 closed enhancement (fixed)

Add Limit 1 to User query

Reported by: spacedmonkey's profile spacedmonkey Owned by: sergeybiryukov's profile 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 7 years ago.

Download all attachments as: .zip

Change History (5)

@spacedmonkey
7 years ago

#1 @SergeyBiryukov
6 years 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
6 years 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
6 years ago

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

Reopening for 4.9.9 consideration.

Last edited 6 years ago by SergeyBiryukov (previous) (diff)

#4 @pento
6 years 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.