Fix translation of plugin metadata. Props DD32. fixes #9573

git-svn-id: http://svn.automattic.com/wordpress/trunk@11002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-19 18:45:09 +00:00
parent 73ee8e006d
commit b6caa91300
2 changed files with 3 additions and 3 deletions

View File

@ -97,12 +97,12 @@ function get_plugin_data( $plugin_file, $markup = true, $translate = true ) {
'TextDomain' => $text_domain, 'DomainPath' => $domain_path
);
if ( $markup || $translate )
$plugin_data = _get_plugin_data_markup_translate($plugin_data, $markup, $translate);
$plugin_data = _get_plugin_data_markup_translate($plugin_file, $plugin_data, $markup, $translate);
return $plugin_data;
}
function _get_plugin_data_markup_translate($plugin_data, $markup = true, $translate = true) {
function _get_plugin_data_markup_translate($plugin_file, $plugin_data, $markup = true, $translate = true) {
//Translate fields
if( $translate && ! empty($plugin_data['TextDomain']) ) {

View File

@ -230,7 +230,7 @@ $current = get_transient( 'update_plugins' );
foreach ( (array)$all_plugins as $plugin_file => $plugin_data) {
//Translate, Apply Markup, Sanitize HTML
$plugin_data = _get_plugin_data_markup_translate($plugin_data, true, true);
$plugin_data = _get_plugin_data_markup_translate($plugin_file, $plugin_data, true, true);
//Filter into individual sections
if ( is_plugin_active($plugin_file) ) {