Ensure that Title is always set for plugin data as it was before. see #8964.

git-svn-id: http://svn.automattic.com/wordpress/trunk@12048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2009-10-17 17:01:07 +00:00
parent 087e3d2376
commit d303a241d1
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ function get_plugin_data( $plugin_file, $markup = true, $translate = true ) {
$plugin_data = get_file_data( $plugin_file, $default_headers, 'plugin' );
//For backward compatibility by default Title is the same as Name.
$plugin_data['Title'] = $plugin_data['Name'];
if ( $markup || $translate )
$plugin_data = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup, $translate );