WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#27092 closed defect (bug) (duplicate)

wp_list_pages cannot handle multiple exclude_tree arguments (copy of #9153)

Reported by: cgaffga Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8.1
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

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 patch to fix this problem.

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

see also: #9153

Attachments (1)

post.php-exclude_tree.patch (1.2 KB) - added by cgaffga 6 years ago.
roothorick patch updated to patch against 3.8.1

Download all attachments as: .zip

Change History (3)

@cgaffga
6 years ago

roothorick patch updated to patch against 3.8.1

#1 follow-up: @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

But the version on that bug can't be updated to a current one, that why I resubmit this.

Version number indicates when the bug was initially introduced/reported.

There's no need to resubmit the ticket, let's keep the discussion in #9153.

#2 in reply to: ↑ 1 @cgaffga
6 years ago

Replying to SergeyBiryukov:

There's no need to resubmit the ticket, let's keep the discussion in #9153.

sorry

Note: See TracTickets for help on using tickets.