Make WordPress Core


Ignore:
Timestamp:
03/08/2014 04:18:30 AM (11 years ago)
Author:
nacin
Message:

Rename the new page_templates filter to theme_page_templates, and pass it a post object for proper context.

see #13265.

File:
1 edited

Legend:

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

    r27401 r27470  
    742742 */
    743743function page_template_dropdown( $default = '' ) {
    744     $templates = get_page_templates();
     744    $templates = get_page_templates( get_post() );
    745745    ksort( $templates );
    746746    foreach ( array_keys( $templates ) as $template ) {
Note: See TracChangeset for help on using the changeset viewer.