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:
parent
087e3d2376
commit
d303a241d1
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue