[wp-trac] [WordPress Trac] #16202: Add support to get_pages() to allow multiple exclude_tree exclusions (was: Exclude tree bug)

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 12 17:30:12 UTC 2011


#16202: Add support to get_pages() to allow multiple exclude_tree exclusions
-------------------------+-----------------------------
 Reporter:  jefsnare     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Template     |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |
-------------------------+-----------------------------
Changes (by dd32):

 * component:  Menus => Template
 * milestone:  Awaiting Review => Future Release
 * keywords:  exclude, tree, post => needs-patch
 * type:  defect (bug) => enhancement


Old description:

> While adding more items in the wp_list_pages to the '''exclude tree'''
> argument (like 12,41,11) only the first tree is excluded.

New description:

 get_pages() does not support the use of multiple parents in the
 exclude_tree arguement.

 The attached patch allows for a comma seperated list to be passed.

--

Comment:

 The attached patch needs to be updated to allow an array to be passed.

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


More information about the wp-trac mailing list