From d303a241d100cfe6bc5933a010671209b63ba7a6 Mon Sep 17 00:00:00 2001 From: westi Date: Sat, 17 Oct 2009 17:01:07 +0000 Subject: [PATCH] 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 --- wp-admin/includes/plugin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 0494dc778e..da1e076a8b 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -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 );