Make WordPress Core

Opened 3 years ago

Closed 4 weeks ago

#23734 closed enhancement (fixed)

Pass more information to wp_dropdown_pages filter

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


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 (3)

post-template.diff (274 bytes) - added by bigdawggi 3 years ago.
passing more information to the 'wp_dropdown_pages' filter
23734.diff (646 bytes) - added by SergeyBiryukov 3 years ago.
23734.2.diff (1.3 KB) - added by wonderboymusic 4 weeks ago.

Download all attachments as: .zip

Change History (9)

@bigdawggi3 years ago

passing more information to the 'wp_dropdown_pages' filter

comment:1 @bigdawggi3 years ago

  • Keywords has-patch added

@SergeyBiryukov3 years ago

comment:2 @SergeyBiryukov3 years 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 @nacin20 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added

@wonderboymusic4 weeks ago

comment:5 @wonderboymusic4 weeks ago

  • Milestone changed from Awaiting Review to 4.4

comment:6 @wonderboymusic4 weeks ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

In 34103:

Pass $r and $pages to the 'wp_dropdown_pages' and 'wp_list_pages' filters.

Props bigdawggi, SergeyBiryukov.
Fixes #23734.

Note: See TracTickets for help on using tickets.