Changeset 12187
- Timestamp:
- 11/13/2009 10:40:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme.php
r12063 r12187 118 118 119 119 /** 120 * {@internal Missing Short Description}}120 * Get the Page Templates available in this theme 121 121 * 122 122 * @since unknown 123 123 * 124 * @return unknown124 * @return array Key is template name, Value is path within the theme folder 125 125 */ 126 126 function get_page_templates() { … … 139 139 140 140 if ( !empty( $name ) ) { 141 $page_templates[trim( $name )] = basename( $template);141 $page_templates[trim( $name )] = str_replace(get_template_directory(), '', $template); 142 142 } 143 143 }
Note: See TracChangeset
for help on using the changeset viewer.