Changeset 47122 for trunk/src/wp-includes/class-wp-image-editor.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-image-editor.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor.php
r47060 r47122 296 296 $new_ext = null; 297 297 298 // By default, assume specified type takes priority 298 // By default, assume specified type takes priority. 299 299 if ( $mime_type ) { 300 300 $new_ext = $this->get_extension( $mime_type ); … … 311 311 312 312 // 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. 314 314 if ( ! $mime_type || ( $file_mime == $mime_type ) ) { 315 315 $mime_type = $file_mime; … … 354 354 */ 355 355 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. 357 357 if ( ! $suffix ) { 358 358 $suffix = $this->get_suffix(); … … 430 430 case 3: 431 431 // Rotate 180 degrees or flip horizontally and vertically. 432 // Flipping seems faster /uses less resources.432 // Flipping seems faster and uses less resources. 433 433 $result = $this->flip( true, true ); 434 434 break;
Note: See TracChangeset
for help on using the changeset viewer.