WordPress.org

Make WordPress Core

Ticket #17536: 17536.diff

File 17536.diff, 1.6 KB (added by mitchoyoshitaka, 7 years ago)
  • wp-admin/includes/update.php

     
    198198
    199199        if ( is_network_admin() || !is_multisite() ) {
    200200                echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';
     201
    201202                if ( ! current_user_can('update_plugins') )
    202203                        printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version );
    203204                else if ( empty($r->package) )
    204205                        printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin.</em>'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version );
    205206                else
    206207                        printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update automatically</a>.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version, wp_nonce_url( self_admin_url('update.php?action=upgrade-plugin&plugin=') . $file, 'upgrade-plugin_' . $file) );
    207         }
    208208
    209         do_action( "in_plugin_update_message-$file", $plugin_data, $r );
     209                do_action( "in_plugin_update_message-$file", $plugin_data, $r );
    210210
    211         echo '</div></td></tr>';
     211                echo '</div></td></tr>';
     212        }
    212213}
    213214
    214215function wp_update_plugin($plugin, $feedback = '') {