Page templates should be relative to the theme ir, not the themes dir.
git-svn-id: https://develop.svn.wordpress.org/trunk@10951 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
18892308b0
commit
f027b05dff
@ -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
Block a user