Updates: Translate plugin data on the Updates screen.
Merge of [39808] to the 4.1 branch. Built from https://develop.svn.wordpress.org/branches/4.1@39826 git-svn-id: http://core.svn.wordpress.org/branches/4.1@39764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cf41259781
commit
4167b5b2cf
|
@ -240,6 +240,8 @@ function list_plugin_updates() {
|
||||||
<tbody class="plugins">
|
<tbody class="plugins">
|
||||||
<?php
|
<?php
|
||||||
foreach ( (array) $plugins as $plugin_file => $plugin_data) {
|
foreach ( (array) $plugins as $plugin_file => $plugin_data) {
|
||||||
|
$plugin_data = (object) _get_plugin_data_markup_translate( $plugin_file, (array) $plugin_data, false, true );
|
||||||
|
|
||||||
$info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug ));
|
$info = plugins_api('plugin_information', array('slug' => $plugin_data->update->slug ));
|
||||||
if ( is_wp_error( $info ) ) {
|
if ( is_wp_error( $info ) ) {
|
||||||
$info = false;
|
$info = false;
|
||||||
|
|
Loading…
Reference in New Issue