Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 13 years ago

#7688 closed defect (bug) (duplicate)

get_children not working

Reported by: security_man's profile security_man Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.6
Component: General Keywords: needs-patch needs-unit-tests
Focuses: Cc:

Description

in version 2.6 get children is not acting the same as 2.5.1

<?php
$mykids = get_children("orderby=menu_order&post_parent=19");
if($mykids):
foreach($mykids as $post) : ?>

$mykids is totally empty and page 19 has children that are showing up as such in the raw $post array

Change History (7)

#1 follow-up: @jacobsantos
16 years ago

This is a duplicate of another ticket.

#2 in reply to: ↑ 1 @jacobsantos
16 years ago

Replying to jacobsantos:

This is a duplicate of another ticket.

Nope, I was thinking of get_posts().

#3 @jacobsantos
16 years ago

  • Keywords needs-patch needs-unit-tests added

#4 @mrmist
16 years ago

The function as described in the ticket returns output for me (against trunk).

#5 @filosofo
16 years ago

  • Milestone 2.8 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

I believe this was fixed in [10130] and is a duplicate or vice versa of #8527

#6 @SergeyBiryukov
13 years ago

  • Keywords needs-unit-tests removed

#7 @SergeyBiryukov
13 years ago

  • Keywords needs-unit-tests added
Note: See TracTickets for help on using tickets.