Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r46586 r47122  
    354354        $checksums = get_core_checksums( $wp_version, 'en_US' );
    355355        $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.
    357357        if ( ! $checksums && $dev ) {
    358358            $checksums = get_core_checksums( (float) $wp_version - 0.1, 'en_US' );
    359359        }
    360360
    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.
    362362        if ( ! $checksums && $dev ) {
    363363            return false;
     
    416416    function test_accepts_dev_updates() {
    417417        include ABSPATH . WPINC . '/version.php'; // $wp_version; // x.y.z
    418         // Only for dev versions
     418        // Only for dev versions.
    419419        if ( false === strpos( $wp_version, '-' ) ) {
    420420            return false;
Note: See TracChangeset for help on using the changeset viewer.