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:
westi 2009-10-14 20:46:09 +00:00
parent 144618f797
commit 40e0b16615
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) )