Changeset 53546
- Timestamp:
- 06/21/2022 11:13:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r53302 r53546 352 352 * 353 353 * @since 2.9.0 354 * @since 3.5.0 The `$image` parameter expects a `WP_Image_Editor` instance. 355 * @since 6.0.0 The `$filesize` value was added to the returned array. 354 356 * 355 357 * @param string $filename Name of the file to be saved. … … 357 359 * @param string $mime_type The mime type of the image. 358 360 * @param int $post_id Attachment post ID. 359 * @return bool True on success, false on failure. 361 * @return array|WP_Error|bool { 362 * Array on success or WP_Error if the file failed to save. 363 * When called with a deprecated value for the `$image` parameter, 364 * i.e. a non-`WP_Image_Editor` image resource or `GdImage` instance, 365 * the function will return true on success, false on failure. 366 * 367 * @type string $path Path to the image file. 368 * @type string $file Name of the image file. 369 * @type int $width Image width. 370 * @type int $height Image height. 371 * @type string $mime-type The mime type of the image. 372 * @type int $filesize File size of the image. 373 * } 360 374 */ 361 375 function wp_save_image_file( $filename, $image, $mime_type, $post_id ) {
Note: See TracChangeset
for help on using the changeset viewer.