Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 14 years ago

#3189 closed enhancement (fixed)

get_children() should use get_posts()

Reported by: mdawaffe's profile mdawaffe Owned by: mdawaffe's profile mdawaffe
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: has-patch 2nd-opinion
Focuses: Cc:


Attached makes get_children() more useful for plugins by going through get_posts().

  1. Alter get_posts() to accept post_parent, post_type, post_status.
  2. get_children() calls get_posts().

Please check to ensure backwards compatibility.

Attachments (2)

3189.diff (4.3 KB) - added by mdawaffe 18 years ago.
3189b.diff (4.4 KB) - added by mdawaffe 18 years ago.
Back Compat defaults

Download all attachments as: .zip

Change History (6)

18 years ago

#1 @mdawaffe
18 years ago

  • Keywords has-patch 2nd-opinion added
  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned

#2 @ryan
18 years ago

Looks good offhand. Will test.

#3 @mdawaffe
18 years ago

I guess the defaults should be empty strings for everything but post_parent to make it back compat.

18 years ago

Back Compat defaults

#4 @ryan
18 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [4503]) get_children() uses get_posts(). Props mdawaffe. fixes #3189

Note: See TracTickets for help on using tickets.