Two small tweaks before release
git-svn-id: http://svn.automattic.com/wordpress/trunk@2346 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -904,7 +904,7 @@ function get_file_description($file) {
|
||||
|
||||
if ( isset($wp_file_descriptions[basename($file)] ) ) {
|
||||
return $wp_file_descriptions[basename($file)];
|
||||
} else {
|
||||
} elseif ( file_exists( ABSPATH . $file ) ) {
|
||||
$template_data = implode('', file(ABSPATH . $file));
|
||||
if ( preg_match("|Template Name:(.*)|i", $template_data, $name) )
|
||||
return $name[1];
|
||||
|
||||
Reference in New Issue
Block a user