Changeset 19003
- Timestamp:
- 10/19/2011 02:51:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/update-core.php
r18520 r19003 10 10 require_once('./admin.php'); 11 11 12 wp_enqueue_style( 'plugin-install' ); 13 wp_enqueue_script( 'plugin-install' ); 14 add_thickbox(); 15 12 16 if ( is_multisite() && ! is_network_admin() ) { 13 17 wp_redirect( network_admin_url( 'update-core.php' ) ); … … 247 251 $upgrade_notice = ''; 248 252 } 253 254 $details_url = self_admin_url('plugin-install.php?tab=plugin-information&plugin=' . $plugin_data->update->slug . '&TB_iframe=true&width=640&height=662'); 255 $details_text = sprintf(__('View version %1$s details'), $plugin_data->update->new_version); 256 $details = sprintf('<a href="%1$s" class="thickbox" title="%2$s">%3$s</a>.', esc_url($details_url), esc_attr($plugin_data->Name), $details_text); 257 249 258 echo " 250 259 <tr class='active'> 251 260 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($plugin_file) . "' /></th> 252 <td>< strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . $compat . $upgrade_notice . "</td>261 <td><p><strong>{$plugin_data->Name}</strong><br />" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $plugin_data->Version, $plugin_data->update->new_version) . ' ' . $details . $compat . $upgrade_notice . "</p></td> 253 262 </tr>"; 254 263 } … … 300 309 <tr class='active'> 301 310 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . esc_attr($stylesheet) . "' /></th> 302 <td class='plugin-title'><img src='$screenshot' width='64' height='64' style='float:left; padding: 5px' /><strong>{$theme_data->Name}</strong>" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . "</td>311 <td class='plugin-title'><img src='$screenshot' width='64' height='64' style='float:left; padding: 0 5px 5px' /><strong>{$theme_data->Name}</strong>" . sprintf(__('You have version %1$s installed. Update to %2$s.'), $theme_data->Version, $theme_data->update['new_version']) . "</td> 303 312 </tr>"; 304 313 }
Note: See TracChangeset
for help on using the changeset viewer.