Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (6 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-includes/class-wp-image-editor.php

    r47060 r47122  
    296296                $new_ext = null;
    297297
    298                 // By default, assume specified type takes priority
     298                // By default, assume specified type takes priority.
    299299                if ( $mime_type ) {
    300300                        $new_ext = $this->get_extension( $mime_type );
     
    311311
    312312                // Check to see if specified mime-type is the same as type implied by
    313                 // file extension.  If so, prefer extension from file.
     313                // file extension. If so, prefer extension from file.
    314314                if ( ! $mime_type || ( $file_mime == $mime_type ) ) {
    315315                        $mime_type = $file_mime;
     
    354354         */
    355355        public function generate_filename( $suffix = null, $dest_path = null, $extension = null ) {
    356                 // $suffix will be appended to the destination filename, just before the extension
     356                // $suffix will be appended to the destination filename, just before the extension.
    357357                if ( ! $suffix ) {
    358358                        $suffix = $this->get_suffix();
     
    430430                        case 3:
    431431                                // Rotate 180 degrees or flip horizontally and vertically.
    432                                 // Flipping seems faster/uses less resources.
     432                                // Flipping seems faster and uses less resources.
    433433                                $result = $this->flip( true, true );
    434434                                break;
Note: See TracChangeset for help on using the changeset viewer.