Changeset 53547 for trunk/src/wp-includes/class-wp-image-editor-imagick.php
- Timestamp:
- 06/21/2022 11:16:09 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-image-editor-imagick.php
r53317 r53547 662 662 * 663 663 * @since 3.5.0 664 * @since 6.0.0 The `$filesize` value was added to the returned array. 664 665 * 665 666 * @param string $destfilename Optional. Destination filename. Default null. 666 667 * @param string $mime_type Optional. The mime-type. Default null. 667 * @return array|WP_Error {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string} 668 * @return array|WP_Error { 669 * Array on success or WP_Error if the file failed to save. 670 * 671 * @type string $path Path to the image file. 672 * @type string $file Name of the image file. 673 * @type int $width Image width. 674 * @type int $height Image height. 675 * @type string $mime-type The mime type of the image. 676 * @type int $filesize File size of the image. 677 * } 668 678 */ 669 679 public function save( $destfilename = null, $mime_type = null ) { … … 685 695 686 696 /** 697 * @since 3.5.0 698 * @since 6.0.0 The `$filesize` value was added to the returned array. 699 * 687 700 * @param Imagick $image 688 701 * @param string $filename 689 702 * @param string $mime_type 690 * @return array|WP_Error 703 * @return array|WP_Error { 704 * Array on success or WP_Error if the file failed to save. 705 * 706 * @type string $path Path to the image file. 707 * @type string $file Name of the image file. 708 * @type int $width Image width. 709 * @type int $height Image height. 710 * @type string $mime-type The mime type of the image. 711 * @type int $filesize File size of the image. 712 * } 691 713 */ 692 714 protected function _save( $image, $filename = null, $mime_type = null ) {
Note: See TracChangeset
for help on using the changeset viewer.