Changeset 25835 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 10/17/2013 11:20:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r25823 r25835 149 149 if ( wp_http_supports( 'ssl' ) ) { 150 150 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 151 $upgrader = new WP_Automatic_Up grader;151 $upgrader = new WP_Automatic_Updater; 152 152 $future_minor_update = (object) array( 153 153 'current' => $wp_version . '.1-update-core.php', … … 156 156 'mysql_version' => $required_mysql_version, 157 157 ); 158 $should_auto_update = $upgrader->should_up grade( 'core', $future_minor_update, ABSPATH );158 $should_auto_update = $upgrader->should_update( 'core', $future_minor_update, ABSPATH ); 159 159 if ( $should_auto_update ) 160 160 echo ' ' . __( 'Future security updates will be applied automatically.' ); … … 173 173 if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) { 174 174 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 175 $upgrader = new WP_Automatic_Up grader;176 if ( wp_http_supports( 'ssl' ) && $upgrader->should_up grade( 'core', $updates[0], ABSPATH ) )175 $upgrader = new WP_Automatic_Updater; 176 if ( wp_http_supports( 'ssl' ) && $upgrader->should_update( 'core', $updates[0], ABSPATH ) ) 177 177 echo '<div class="updated inline"><p><strong>BETA TESTERS:</strong> This site is set up to install updates of future beta versions automatically.</p></div>'; 178 178 }
Note: See TracChangeset
for help on using the changeset viewer.