WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#10668 closed enhancement (fixed)

Improve get_comments()

Reported by: filosofo Owned by:
Milestone: 3.0 Priority: normal
Severity: normal Version:
Component: Comments Keywords: has-patch tested get_comments early
Focuses: Cc:

Description

get_comments() currently has limited options.

Patch allows one to select comments by querying values of most of the comments table fields available.

It also extends orderby to allow one to orderby any combination of actual fields.

I have tested each of the new arguments and orderby possibilities, with success.

Default behavior is unaffected.

Attachments (1)

extend_get_comments.10668.diff (2.6 KB) - added by filosofo 8 years ago.

Download all attachments as: .zip

Change History (4)

#1 @scribu
8 years ago

Several of the columns might be moved to the new wp_commentmeta table: #2659

#2 @ryan
8 years ago

  • Keywords early added
  • Milestone changed from 2.9 to 3.0

#3 @ryan
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.