diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 06e06c24b0..202f7c45eb 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -198,17 +198,18 @@ function wp_plugin_update_row( $file, $plugin_data ) { if ( is_network_admin() || !is_multisite() ) { echo '
'; + if ( ! current_user_can('update_plugins') ) printf( __('There is a new version of %1$s available. View version %4$s details.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); else if ( empty($r->package) ) printf( __('There is a new version of %1$s available. View version %4$s details. Automatic update is unavailable for this plugin.'), $plugin_name, esc_url($details_url), esc_attr($plugin_name), $r->new_version ); else printf( __('There is a new version of %1$s available. View version %4$s details or update automatically.'), $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) ); + + do_action( "in_plugin_update_message-$file", $plugin_data, $r ); + + echo '
'; } - - do_action( "in_plugin_update_message-$file", $plugin_data, $r ); - - echo ''; } function wp_update_plugin($plugin, $feedback = '') {