Changeset 25823 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 10/17/2013 12:54:15 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r25820 r25823 149 149 if ( wp_http_supports( 'ssl' ) ) { 150 150 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 151 $upgrader = new WP_Automatic_Upgrader; 151 152 $future_minor_update = (object) array( 152 153 'current' => $wp_version . '.1-update-core.php', … … 155 156 'mysql_version' => $required_mysql_version, 156 157 ); 157 $should_auto_update = WP_Automatic_Upgrader::should_auto_update( 'core', $future_minor_update, ABSPATH );158 $should_auto_update = $upgrader->should_upgrade( 'core', $future_minor_update, ABSPATH ); 158 159 if ( $should_auto_update ) 159 160 echo ' ' . __( 'Future security updates will be applied automatically.' ); … … 172 173 if ( isset( $updates[0] ) && $updates[0]->response == 'development' ) { 173 174 require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; 174 if ( wp_http_supports( 'ssl' ) && WP_Automatic_Upgrader::should_auto_update( 'core', $updates[0], ABSPATH ) ) 175 $upgrader = new WP_Automatic_Upgrader; 176 if ( wp_http_supports( 'ssl' ) && $upgrader->should_upgrade( 'core', $updates[0], ABSPATH ) ) 175 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>'; 176 178 }
Note: See TracChangeset
for help on using the changeset viewer.