Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 15 years ago

#7688 closed defect (bug) (duplicate)

get_children not working

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

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
18 years ago

This is a duplicate of another ticket.

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

Replying to jacobsantos:

This is a duplicate of another ticket.

Nope, I was thinking of get_posts().

#3 @jacobsantos
18 years ago

  • Keywords needs-patch needs-unit-tests added

#4 @mrmist
18 years ago

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

#5 @filosofo
18 years ago

  • Milestone 2.8
  • Resolution → duplicate
  • Status new → closed

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

#6 @SergeyBiryukov
15 years ago

  • Keywords needs-unit-tests removed

#7 @SergeyBiryukov
15 years ago

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