- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php
r46586 r47122 354 354 $checksums = get_core_checksums( $wp_version, 'en_US' ); 355 355 $dev = ( false !== strpos( $wp_version, '-' ) ); 356 // Get the last stable version's files and test against that 356 // Get the last stable version's files and test against that. 357 357 if ( ! $checksums && $dev ) { 358 358 $checksums = get_core_checksums( (float) $wp_version - 0.1, 'en_US' ); 359 359 } 360 360 361 // There aren't always checksums for development releases, so just skip the test if we still can't find any 361 // There aren't always checksums for development releases, so just skip the test if we still can't find any. 362 362 if ( ! $checksums && $dev ) { 363 363 return false; … … 416 416 function test_accepts_dev_updates() { 417 417 include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z 418 // Only for dev versions 418 // Only for dev versions. 419 419 if ( false === strpos( $wp_version, '-' ) ) { 420 420 return false;
Note: See TracChangeset
for help on using the changeset viewer.