Make WordPress Core

Opened 14 years ago

Closed 11 years ago

#23734 closed enhancement (fixed)

Pass more information to wp_dropdown_pages filter

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

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

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

Download all attachments as: .zip

Change History (9)

@bigdawggi
14 years ago

passing more information to the 'wp_dropdown_pages' filter

#1 @bigdawggi
14 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
14 years ago

  • Component General → Template
  • Type defect (bug) → enhancement

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

#4 @nacin
13 years ago

  • Component Template → Posts, Post Types
  • Focuses template added

#5 @wonderboymusic
11 years ago

  • Milestone Awaiting Review → 4.4

#6 @wonderboymusic
11 years ago

  • Owner set to wonderboymusic
  • Resolution → fixed
  • Status new → 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.