Make WordPress Core


Ignore:
Timestamp:
11/19/2009 07:53:27 PM (15 years ago)
Author:
westi
Message:

Revert [12187] as it didn't fix the issue for all cases. See #10959.

File:
1 edited

Legend:

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

    r12187 r12225  
    122122 * @since unknown
    123123 *
    124  * @return array Key is template name, Value is path within the theme folder
     124 * @return array Key is template name, Value is template name
    125125 */
    126126function get_page_templates() {
     
    139139
    140140            if ( !empty( $name ) ) {
    141                 $page_templates[trim( $name )] = str_replace(get_template_directory(), '', $template);
     141                $page_templates[trim( $name )] = basename( $template ); ;
    142142            }
    143143        }
Note: See TracChangeset for help on using the changeset viewer.