Changeset 12225 for trunk/wp-admin/includes/theme.php
- Timestamp:
- 11/19/2009 07:53:27 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme.php
r12187 r12225 122 122 * @since unknown 123 123 * 124 * @return array Key is template name, Value is path within the theme folder124 * @return array Key is template name, Value is template name 125 125 */ 126 126 function get_page_templates() { … … 139 139 140 140 if ( !empty( $name ) ) { 141 $page_templates[trim( $name )] = str_replace(get_template_directory(), '', $template);141 $page_templates[trim( $name )] = basename( $template ); ; 142 142 } 143 143 }
Note: See TracChangeset
for help on using the changeset viewer.