Changeset 53547 for trunk/src/wp-includes/class-wp-image-editor-gd.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-gd.php
r53317 r53547 426 426 * @since 5.9.0 Renamed `$filename` to `$destfilename` to match parent class 427 427 * for PHP 8 named parameter support. 428 * @since 6.0.0 The `$filesize` value was added to the returned array. 428 429 * 429 430 * @param string|null $destfilename Optional. Destination filename. Default null. 430 431 * @param string|null $mime_type Optional. The mime-type. Default null. 431 * @return array|WP_Error {'path'=>string, 'file'=>string, 'width'=>int, 'height'=>int, 'mime-type'=>string} 432 * @return array|WP_Error { 433 * Array on success or WP_Error if the file failed to save. 434 * 435 * @type string $path Path to the image file. 436 * @type string $file Name of the image file. 437 * @type int $width Image width. 438 * @type int $height Image height. 439 * @type string $mime-type The mime type of the image. 440 * @type int $filesize File size of the image. 441 * } 432 442 */ 433 443 public function save( $destfilename = null, $mime_type = null ) { … … 443 453 444 454 /** 455 * @since 3.5.0 456 * @since 6.0.0 The `$filesize` value was added to the returned array. 457 * 445 458 * @param resource|GdImage $image 446 459 * @param string|null $filename 447 460 * @param string|null $mime_type 448 * @return array|WP_Error 461 * @return array|WP_Error { 462 * Array on success or WP_Error if the file failed to save. 463 * 464 * @type string $path Path to the image file. 465 * @type string $file Name of the image file. 466 * @type int $width Image width. 467 * @type int $height Image height. 468 * @type string $mime-type The mime type of the image. 469 * @type int $filesize File size of the image. 470 * } 449 471 */ 450 472 protected function _save( $image, $filename = null, $mime_type = null ) {
Note: See TracChangeset
for help on using the changeset viewer.