Changeset 8540 for trunk/wp-admin/includes/update.php
- Timestamp:
- 08/04/2008 09:01:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/update.php
r8317 r8540 61 61 $r = $current->response[ $file ]; 62 62 63 $details_url = admin_url('plugin-install.php?tab=plugin-information&plugin=' . $r->slug . '&TB_iframe=true&width=600&height=800'); 64 63 65 echo '<tr><td colspan="5" class="plugin-update">'; 64 66 if ( ! current_user_can('update_plugins') ) 65 printf( __('There is a new version of %1$s available. <a href="%2$s" >Download version %3$s here</a>.'), $plugin_data['Name'], $r->url, $r->new_version);67 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a>.'), $plugin_data['Name'], $details_url, $r->new_version); 66 68 else if ( empty($r->package) ) 67 printf( __('There is a new version of %1$s available. <a href="%2$s" >Download version %3$s here</a> <em>automatic upgrade unavailable for this plugin</em>.'), $plugin_data['Name'], $r->url, $r->new_version);69 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> <em>automatic upgrade unavailable for this plugin</em>.'), $plugin_data['Name'], $details_url, $r->new_version); 68 70 else 69 printf( __('There is a new version of %1$s available. <a href="%2$s" >Download version %3$s here</a> or <a href="%4$s">upgrade automatically</a>.'), $plugin_data['Name'], $r->url, $r->new_version, wp_nonce_url('update.php?action=upgrade-plugin&plugin=' . $file, 'upgrade-plugin_' . $file) );71 printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> or <a href="%4$s">upgrade automatically</a>.'), $plugin_data['Name'], $details_url, $r->new_version, wp_nonce_url('update.php?action=upgrade-plugin&plugin=' . $file, 'upgrade-plugin_' . $file) ); 70 72 71 73 echo '</td></tr>';
Note: See TracChangeset
for help on using the changeset viewer.