Page Templates now have there full path specified so no need to prepend WP_CONTENT_DIR. Fixes #10953 props sivel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
144618f797
commit
40e0b16615
|
@ -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