Make WordPress Core


Ignore:
Timestamp:
07/09/2023 07:50:52 PM (17 months ago)
Author:
audrasjb
Message:

Docs: Replace multiple single line comments with multi-line comments.

This changeset updates various comments as per WordPress PHP Inline Documentation Standards.
See https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#5-inline-comments.

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-automatic-updater.php

    r56124 r56174  
    471471                    || 'locked' === $upgrade_result->get_error_code() )
    472472            ) {
    473                 // These aren't actual errors, treat it as a skipped-update instead
    474                 // to avoid triggering the post-core update failure routines.
     473                /*
     474                 * These aren't actual errors, treat it as a skipped-update instead
     475                 * to avoid triggering the post-core update failure routines.
     476                 */
    475477                return false;
    476478            }
     
    549551        }
    550552
    551         // Clean up, and check for any pending translations.
    552         // (Core_Upgrader checks for core updates.)
     553        /*
     554         * Clean up, and check for any pending translations.
     555         * (Core_Upgrader checks for core updates.)
     556         */
    553557        $theme_stats = array();
    554558        if ( isset( $this->update_results['theme'] ) ) {
     
    639643        $error_code = $result->get_error_code();
    640644
    641         // Any of these WP_Error codes are critical failures, as in they occurred after we started to copy core files.
    642         // We should not try to perform a background update again until there is a successful one-click update performed by the user.
     645        /*
     646         * Any of these WP_Error codes are critical failures, as in they occurred after we started to copy core files.
     647         * We should not try to perform a background update again until there is a successful one-click update performed by the user.
     648         */
    643649        $critical = false;
    644650        if ( 'disk_full' === $error_code || str_contains( $error_code, '__copy_dir' ) ) {
     
    832838                $body .= "\n\n";
    833839
    834                 // Don't show this message if there is a newer version available.
    835                 // Potential for confusion, and also not useful for them to know at this point.
     840                /*
     841                 * Don't show this message if there is a newer version available.
     842                 * Potential for confusion, and also not useful for them to know at this point.
     843                 */
    836844                if ( 'fail' === $type && ! $newer_version_available ) {
    837845                    $body .= __( 'An attempt was made, but your site could not be updated automatically.' ) . ' ';
     
    904912            $body .= ' ' . __( 'Your hosting company, support forum volunteers, or a friendly developer may be able to use this information to help you:' );
    905913
    906             // If we had a rollback and we're still critical, then the rollback failed too.
    907             // Loop through all errors (the main WP_Error, the update result, the rollback result) for code, data, etc.
     914            /*
     915             * If we had a rollback and we're still critical, then the rollback failed too.
     916             * Loop through all errors (the main WP_Error, the update result, the rollback result) for code, data, etc.
     917             */
    908918            if ( 'rollback_was_required' === $result->get_error_code() ) {
    909919                $errors = array( $result, $result->get_error_data()->update, $result->get_error_data()->rollback );
Note: See TracChangeset for help on using the changeset viewer.