Page Templates now have there full path specified so no need to prepend WP_CONTENT_DIR. Fixes #10953 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@12033 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
52c593458d
commit
a8bf4adf41
@ -131,7 +131,7 @@ function get_page_templates() {
|
||||
|
||||
if ( is_array( $templates ) ) {
|
||||
foreach ( $templates as $template ) {
|
||||
$template_data = implode( '', file( WP_CONTENT_DIR.$template ));
|
||||
$template_data = implode( '', file( $template ));
|
||||
|
||||
$name = '';
|
||||
if ( preg_match( '|Template Name:(.*)$|mi', $template_data, $name ) )
|
||||
|
Loading…
Reference in New Issue
Block a user