WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 6 years ago

#23368 closed enhancement (wontfix)

Random order for wp_user_query

Reported by: gandham Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Users Keywords: has-patch
Focuses: Cc:

Description

Unlike the wp_query, wp_user_query misses the order by random option.

This option is necessary when you have a lot of users and we want to show only some of them randomly in a widget or anywhere on the blog.

It would be great to have this option in the next wp release.

Attachments (1)

user.php.patch (583 bytes) - added by gandham 9 years ago.

Download all attachments as: .zip

Change History (5)

@gandham
9 years ago

#2 @SergeyBiryukov
9 years ago

  • Severity changed from major to normal
  • Type changed from feature request to enhancement
  • Version changed from trunk to 3.5

#4 @chriscct7
6 years ago

  • Keywords 2nd-opinion dev-feedback removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Querying by rand is a bad idea, particularly when there's alot of rows. Closing as wontfix

Note: See TracTickets for help on using tickets.