Make WordPress Core


Ignore:
Timestamp:
07/09/2023 07:50:52 PM (21 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-upgrader.php

    r56117 r56174  
    564564            return new WP_Error( 'incompatible_archive_empty', $this->strings['incompatible_archive'], $this->strings['no_files'] );
    565565        } else {
    566             // It's only a single file, the upgrader will use the folder name of this file as the destination folder.
    567             // Folder name is based on zip filename.
     566            /*
     567             * It's only a single file, the upgrader will use the folder name of this file as the destination folder.
     568             * Folder name is based on zip filename.
     569             */
    568570            $source = trailingslashit( $args['source'] );
    569571        }
     
    642644            }
    643645        } elseif ( $args['abort_if_destination_exists'] && $wp_filesystem->exists( $remote_destination ) ) {
    644             // If we're not clearing the destination folder and something exists there already, bail.
    645             // But first check to see if there are actually any files in the folder.
     646            /*
     647             * If we're not clearing the destination folder and something exists there already, bail.
     648             * But first check to see if there are actually any files in the folder.
     649             */
    646650            $_files = $wp_filesystem->dirlist( $remote_destination );
    647651            if ( ! empty( $_files ) ) {
     
    822826        $download = $this->download_package( $options['package'], true, $options['hook_extra'] );
    823827
    824         // Allow for signature soft-fail.
    825         // WARNING: This may be removed in the future.
     828        /*
     829         * Allow for signature soft-fail.
     830         * WARNING: This may be removed in the future.
     831         */
    826832        if ( is_wp_error( $download ) && $download->get_error_data( 'softfail-filename' ) ) {
    827833
Note: See TracChangeset for help on using the changeset viewer.