WordPress.org

Make WordPress Core

Opened 13 months ago

Last modified 3 months ago

#23734 new enhancement

Pass more information to wp_dropdown_pages filter

Reported by: bigdawggi Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: template Cc:

Description

We need to pass more information to the 'wp_dropdown_pages' filter for others to make decisions with. Here's a small & quick patch for passing more args to the filter.

Attachments (2)

post-template.diff (274 bytes) - added by bigdawggi 13 months ago.
passing more information to the 'wp_dropdown_pages' filter
23734.diff (646 bytes) - added by SergeyBiryukov 13 months ago.

Download all attachments as: .zip

Change History (6)

bigdawggi13 months ago

passing more information to the 'wp_dropdown_pages' filter

comment:1 bigdawggi13 months ago

  • Keywords has-patch added

SergeyBiryukov13 months ago

comment:2 SergeyBiryukov13 months ago

  • Component changed from General to Template
  • Type changed from defect (bug) to enhancement

23734.diff adds $pages to wp_list_pages filter too and makes the order of arguments consistent.

comment:4 nacin3 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added
Note: See TracTickets for help on using tickets.