WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 months ago

#18701 new defect (bug)

"hierarchical" argument for get_pages() does nothing — at Version 1

Reported by: Viper007Bond Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.0
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description (last modified by Viper007Bond)

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.

Change History (1)

comment:1 Viper007Bond3 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.