Ticket #5422: 5442.post-11258.patch
File 5442.post-11258.patch, 2.0 KB (added by , 15 years ago) |
---|
-
wp-admin/includes/update.php
159 159 160 160 echo '<tr><td colspan="5" class="plugin-update">'; 161 161 if ( ! current_user_can('update_plugins') ) 162 printf( 162 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, $details_url, esc_attr($plugin_name), $r->new_version); 163 163 else if ( empty($r->package) ) 164 printf( 164 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 upgrade unavailable for this plugin</em>.'), $plugin_name, $details_url, esc_attr($plugin_name), $r->new_version); 165 165 else 166 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">upgrade automatically</a>.'), $plugin_name, $details_url, esc_attr($plugin_name), $r->new_version, wp_nonce_url('update.php?action=upgrade-plugin&plugin=' . $file, 'upgrade-plugin_' . $file));166 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">upgrade automatically</a>.'), $plugin_name, esc_attr($details_url), esc_attr($plugin_name), $r->new_version, wp_nonce_url('update.php?action=upgrade-plugin&plugin=' . $file, 'upgrade-plugin_' . $file)); 167 167 168 168 do_action( "in_plugin_update_message-$file", $plugin_data, $r ); 169 169