[wp-trac] [WordPress Trac] #5373: wp_list_pages - set
'hierarchical' to 0 on 'include'
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 20 22:00:54 GMT 2007
#5373: wp_list_pages - set 'hierarchical' to 0 on 'include'
------------------------+---------------------------------------------------
Reporter: Kafkaesqui | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3.2
Component: General | Version: 2.3.1
Severity: normal | Keywords: wp_list_pages include hierarchical child
------------------------+---------------------------------------------------
Using wp_list_pages() with the 'include' argument, the included Page(s)
list will not appear if they have been assigned a parent.
I traced this down to the 'hierarchical'
parameter, which is set to 1 by default. It should added to the "ignore"
list of variables in the `if ( !empty($include) )` statement under the
get_pages() function (wp-includes/post.php).
--
Ticket URL: <http://trac.wordpress.org/ticket/5373>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list