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:
saxmatt
2005-02-15 03:32:43 +00:00
parent 86f0f9fa5c
commit d720a8ef0a
2 changed files with 11 additions and 2 deletions

View File

@@ -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];