Make WordPress Core


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

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-imagick.php

    r55404 r56178  
    103103        }
    104104
    105         // setIteratorIndex is optional unless mime is an animated format.
    106         // Here, we just say no if you are missing it and aren't loading a jpeg.
     105        /*
     106         * setIteratorIndex is optional unless mime is an animated format.
     107         * Here, we just say no if you are missing it and aren't loading a jpeg.
     108         */
    107109        if ( ! method_exists( 'Imagick', 'setIteratorIndex' ) && 'image/jpeg' !== $mime_type ) {
    108110                return false;
     
    603605
    604606            if ( $dst_w || $dst_h ) {
    605                 // If destination width/height isn't specified,
    606                 // use same as width/height from source.
     607                /*
     608                 * If destination width/height isn't specified,
     609                 * use same as width/height from source.
     610                 */
    607611                if ( ! $dst_w ) {
    608612                    $dst_w = $src_w;
     
    958962    protected function pdf_setup() {
    959963        try {
    960             // By default, PDFs are rendered in a very low resolution.
    961             // We want the thumbnail to be readable, so increase the rendering DPI.
     964            /*
     965             * By default, PDFs are rendered in a very low resolution.
     966             * We want the thumbnail to be readable, so increase the rendering DPI.
     967             */
    962968            $this->image->setResolution( 128, 128 );
    963969
     
    987993
    988994        try {
    989             // When generating thumbnails from cropped PDF pages, Imagemagick uses the uncropped
    990             // area (resulting in unnecessary whitespace) unless the following option is set.
     995            /*
     996             * When generating thumbnails from cropped PDF pages, Imagemagick uses the uncropped
     997             * area (resulting in unnecessary whitespace) unless the following option is set.
     998             */
    991999            $this->image->setOption( 'pdf:use-cropbox', true );
    9921000
    993             // Reading image after Imagick instantiation because `setResolution`
    994             // only applies correctly before the image is read.
     1001            /*
     1002             * Reading image after Imagick instantiation because `setResolution`
     1003             * only applies correctly before the image is read.
     1004             */
    9951005            $this->image->readImage( $filename );
    9961006        } catch ( Exception $e ) {
Note: See TracChangeset for help on using the changeset viewer.