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

git-svn-id: https://develop.svn.wordpress.org/trunk@12225 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-11-19 19:53:27 +00:00
parent fb2d04d68e
commit 1ca762ff8d
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ function get_broken_themes() {
*
* @since unknown
*
* @return array Key is template name, Value is path within the theme folder
* @return array Key is template name, Value is template name
*/
function get_page_templates() {
$themes = get_themes();
@ -138,7 +138,7 @@ function get_page_templates() {
$name = _cleanup_header_comment($name[1]);
if ( !empty( $name ) ) {
$page_templates[trim( $name )] = str_replace(get_template_directory(), '', $template);
$page_templates[trim( $name )] = basename( $template ); ;
}
}
}