mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Two small tweaks before release
git-svn-id: https://develop.svn.wordpress.org/trunk@2346 602fd350-edb4-49c9-b593-d223f7449a82
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