Make WordPress Core


Ignore:
Timestamp:
02/29/2012 08:18:53 PM (15 years ago)
Author:
nacin
Message:

Translate page template names! Have WP_Theme::get_page_templates() return templates keyed by filename, not by template name, as it makes more sense. Flip this in get_page_templates() to be compatible. fixes #6007.

File:
1 edited

Legend:

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

    r20029 r20041  
    8282 */
    8383function get_page_templates() {
    84         return wp_get_theme()->get_page_templates();
     84        return array_flip( wp_get_theme()->get_page_templates() );
    8585}
    8686
Note: See TracChangeset for help on using the changeset viewer.