Changeset 56178 for trunk/src/wp-includes/class-wp-image-editor.php
- Timestamp:
- 07/09/2023 09:23:34 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor.php
r54417 r56178 350 350 } 351 351 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 */ 354 356 if ( ! $mime_type || ( $file_mime == $mime_type ) ) { 355 357 $mime_type = $file_mime; … … 385 387 } 386 388 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 */ 389 393 if ( ! $this->supports_mime_type( $mime_type ) ) { 390 394 /** … … 401 405 } 402 406 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 */ 406 412 if ( $filename && $new_ext ) { 407 413 $dir = pathinfo( $filename, PATHINFO_DIRNAME ); … … 516 522 break; 517 523 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 */ 520 528 $result = $this->flip( true, true ); 521 529 break;
Note: See TracChangeset
for help on using the changeset viewer.