WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 2 years ago

#16202 closed enhancement

Add support to get_pages() to allow multiple exclude_tree exclusions — at Version 1

Reported by: jefsnare Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: Template Keywords:
Focuses: Cc:

Description (last modified by dd32)

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.

Change History (2)

@jefsnare4 years ago

comment:1 @dd324 years ago

  • Component changed from Menus to Template
  • Description modified (diff)
  • Keywords needs-patch added; exclude tree post removed
  • Milestone changed from Awaiting Review to Future Release
  • Summary changed from Exclude tree bug to Add support to get_pages() to allow multiple exclude_tree exclusions
  • Type changed from defect (bug) to enhancement

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

Note: See TracTickets for help on using tickets.