[wp-trac] [WordPress Trac] #18701: "hierarchical" argument for get_pages() does nothing

WordPress Trac wp-trac at lists.automattic.com
Mon Sep 19 06:50:28 UTC 2011


#18701: "hierarchical" argument for get_pages() does nothing
--------------------------+------------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Description changed by Viper007Bond:

Old description:

> The `hierarchical` argument for `get_pages()` is never actually used. It
> is in an `if` statement, but one that requires `child_of` to also be set:
>
> {{{
> if ( $child_of || $hierarchical )
>         $pages = & get_page_children($child_of, $pages);
> }}}

New description:

 The `hierarchical` argument for `get_pages()` is never actually used. It
 is in an `if` statement, but one that requires `child_of` to also be set:

 {{{
 if ( $child_of || $hierarchical )
         $pages = & get_page_children($child_of, $pages);
 }}}

 Props Vynce Montgomery for pointing this out to me.

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18701#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list