Ensure that Title is always set for plugin data as it was before. see #8964.
git-svn-id: https://develop.svn.wordpress.org/trunk@12048 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2d890657ea
commit
8427416edf
@ -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
Block a user