Page templates should be relative to the theme ir, not the themes dir.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0ed6972911
commit
328861f0e3
|
@ -139,7 +139,7 @@ function get_page_templates() {
|
|||
$name = $name[1];
|
||||
|
||||
if ( !empty( $name ) ) {
|
||||
$page_templates[trim( $name )] = theme_basename( $template );
|
||||
$page_templates[trim( $name )] = basename( $template );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue