Changeset 14678
- Timestamp:
- 05/15/2010 09:36:38 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-upgrade-network.php
r14139 r14678 44 44 echo "<ul>"; 45 45 foreach ( (array) $blogs as $details ) { 46 if ( $details['spam'] == 0 && $details['deleted'] == 0 && $details['archived'] == 0 ) { 47 $siteurl = get_blog_option( $details['blog_id'], 'siteurl' ); 48 echo "<li>$siteurl</li>"; 49 $response = wp_remote_get( trailingslashit( $siteurl ) . "wp-admin/upgrade.php?step=1", array( 'timeout' => 120, 'httpversion' => '1.1' ) ); 50 if ( is_wp_error( $response ) ) 51 wp_die( "<strong>Warning!</strong> Problem updating {$siteurl}. Your server may not be able to connect to sites running on it.<br /> Error message: <em>" . $response->get_error_message() ."</em>" ); 52 do_action( 'after_mu_upgrade', $response ); 53 do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] ); 54 } 46 $siteurl = get_blog_option( $details['blog_id'], 'siteurl' ); 47 echo "<li>$siteurl</li>"; 48 $response = wp_remote_get( trailingslashit( $siteurl ) . "wp-admin/upgrade.php?step=upgrade_db", array( 'timeout' => 120, 'httpversion' => '1.1' ) ); 49 if ( is_wp_error( $response ) ) 50 wp_die( "<strong>Warning!</strong> Problem updating {$siteurl}. Your server may not be able to connect to sites running on it.<br /> Error message: <em>" . $response->get_error_message() ."</em>" ); 51 do_action( 'after_mu_upgrade', $response ); 52 do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] ); 55 53 } 56 54 echo "</ul>";
Note: See TracChangeset
for help on using the changeset viewer.