Changeset 12437
- Timestamp:
- 12/17/2009 08:19:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.9/wp-admin/update-core.php
r12413 r12437 96 96 */ 97 97 function core_upgrade_preamble() { 98 global $upgrade_error; 99 98 100 $updates = get_core_updates(); 99 101 ?> … … 102 104 <h2><?php _e('Upgrade WordPress'); ?></h2> 103 105 <?php 106 if ( $upgrade_error ) { 107 echo '<div class="error"><p>'; 108 _e('Please select one or more plugins to upgrade.'); 109 echo '</p></div>'; 110 } 111 104 112 if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) { 105 113 echo '<h3>'; … … 332 340 if ( isset($_GET['plugins']) ) { 333 341 $plugins = explode(',', $_GET['plugins']); 342 } elseif ( isset($_POST['checked']) ) { 343 $plugins = (array) $_POST['checked']; 334 344 } else { 335 $plugins = (array) $_POST['checked']; 345 // Nothing to do. 346 return; 336 347 } 337 348 $url = 'update-core.php?action=do-plugin-upgrade&plugins=' . urlencode(join(',', $plugins)); … … 343 354 344 355 $action = isset($_GET['action']) ? $_GET['action'] : 'upgrade-core'; 356 357 $upgrade_error = false; 358 if ( 'do-plugin-upgrade' == $action && !isset($_GET['plugins']) && !isset($_POST['checked']) ) { 359 $upgrade_error = true; 360 $action = 'upgrade-core'; 361 } 345 362 346 363 $title = __('Upgrade WordPress');
Note: See TracChangeset
for help on using the changeset viewer.