mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Fix translation of plugin metadata. Props DD32. fixes #9573
git-svn-id: https://develop.svn.wordpress.org/trunk@11002 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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']) ) {
|
||||
|
||||
Reference in New Issue
Block a user