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/meta-boxes.php

    r27325 r27470  
    706706        } // end empty pages check
    707707    } // end hierarchical check.
    708     if ( 'page' == $post->post_type && 0 != count( get_page_templates() ) ) {
     708    if ( 'page' == $post->post_type && 0 != count( get_page_templates( $post ) ) ) {
    709709        $template = !empty($post->page_template) ? $post->page_template : false;
    710710        ?>
Note: See TracChangeset for help on using the changeset viewer.