WordPress.org

Make WordPress Core

Ticket #16418: 16418.diff

File 16418.diff, 674 bytes (added by kawauso, 3 years ago)

Always use _get_plugin_data_markup_translate()

  • wp-admin/includes/plugin.php

     
    9898        //For backward compatibility by default Title is the same as Name. 
    9999        $plugin_data['Title'] = $plugin_data['Name']; 
    100100 
    101         if ( $markup || $translate ) 
    102                 $plugin_data = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup, $translate ); 
    103         else 
    104                 $plugin_data['AuthorName'] = $plugin_data['Author']; 
     101        $plugin_data = _get_plugin_data_markup_translate( $plugin_file, $plugin_data, $markup, $translate ); 
    105102 
    106103        return $plugin_data; 
    107104}