Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#10668 closed enhancement (fixed)

Improve get_comments()

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


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

Download all attachments as: .zip

Change History (4)

#1 @scribu
15 years ago

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

#2 @ryan
15 years ago

  • Keywords early added
  • Milestone changed from 2.9 to 3.0

#3 @ryan
15 years ago

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