Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#10668 closed enhancement (fixed)

Improve get_comments()

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

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

Download all attachments as: .zip

Change History (4)

#1 @scribu
17 years ago

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

#2 @ryan
17 years ago

  • Keywords early added
  • Milestone 2.9 → 3.0

#3 @ryan
17 years ago

  • Resolution → fixed
  • Status new → closed
Note: See TracTickets for help on using tickets.