Make WordPress Core


Ignore:
Timestamp:
07/09/2023 09:23:34 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.

Follow-up to [56174], [56175], [56176], [56177].

Props costdev, audrasjb.
See #58459.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor.php

    r54417 r56178  
    350350        }
    351351
    352         // Check to see if specified mime-type is the same as type implied by
    353         // file extension. If so, prefer extension from file.
     352        /*
     353         * Check to see if specified mime-type is the same as type implied by
     354         * file extension. If so, prefer extension from file.
     355         */
    354356        if ( ! $mime_type || ( $file_mime == $mime_type ) ) {
    355357            $mime_type = $file_mime;
     
    385387        }
    386388
    387         // Double-check that the mime-type selected is supported by the editor.
    388         // If not, choose a default instead.
     389        /*
     390         * Double-check that the mime-type selected is supported by the editor.
     391         * If not, choose a default instead.
     392         */
    389393        if ( ! $this->supports_mime_type( $mime_type ) ) {
    390394            /**
     
    401405        }
    402406
    403         // Ensure both $filename and $new_ext are not empty.
    404         // $this->get_extension() returns false on error which would effectively remove the extension
    405         // from $filename. That shouldn't happen, files without extensions are not supported.
     407        /*
     408         * Ensure both $filename and $new_ext are not empty.
     409         * $this->get_extension() returns false on error which would effectively remove the extension
     410         * from $filename. That shouldn't happen, files without extensions are not supported.
     411         */
    406412        if ( $filename && $new_ext ) {
    407413            $dir = pathinfo( $filename, PATHINFO_DIRNAME );
     
    516522                break;
    517523            case 3:
    518                 // Rotate 180 degrees or flip horizontally and vertically.
    519                 // Flipping seems faster and uses less resources.
     524                /*
     525                 * Rotate 180 degrees or flip horizontally and vertically.
     526                 * Flipping seems faster and uses less resources.
     527                 */
    520528                $result = $this->flip( true, true );
    521529                break;
Note: See TracChangeset for help on using the changeset viewer.