[wp-trac] [WordPress Trac] #27092: wp_list_pages cannot handle multiple exclude_tree arguments (copy of #9153)

WordPress Trac noreply at wordpress.org
Tue Feb 11 12:46:50 UTC 2014


#27092: wp_list_pages cannot handle multiple exclude_tree arguments (copy of #9153)
-------------------------------+-----------------------------
 Reporter:  cgaffga            |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  3.8.1
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Bug #9153 persists throughout version WP 3.8.1, and it was really driving
 me mad! But the version on that bug can't be updated to a current one,
 that why I resubmit this.

 It seems that `wp_list_pages` function is ignoring all but the first
 argument to the `exclude_tree` parameter. So code like this
 {{{
   wp_list_pages('title_li=&exclude_tree=2,1895,1640,1893');
 }}}
 would fail for all but page ID 2.

 There is already a [attachment:post.php-exclude_tree.patch patch to fix
 this problem].

 I would really appreciate if this could be applied to the core source.

 see also: #9153

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27092>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list