Make WordPress Core


Ignore:
Timestamp:
09/29/2011 09:21:15 PM (13 years ago)
Author:
nacin
Message:

Add filter for the args into wp_dropdown_pages() in the page attributes box. Give the list_pages filter the context of the post object. fixes #8592 for 3.3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r18739 r18818  
    11081108            $output .= ' selected="selected"';
    11091109        $output .= '>';
    1110         $title = apply_filters( 'list_pages', $page->post_title );
     1110        $title = apply_filters( 'list_pages', $page->post_title, $page );
    11111111        $output .= $pad . esc_html( $title );
    11121112        $output .= "</option>\n";
Note: See TracChangeset for help on using the changeset viewer.