Changeset 47065
- Timestamp:
- 01/12/2020 04:54:56 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r47024 r47065 12 12 * @since 2.9.0 13 13 * 14 * @param int $post_id Post ID.14 * @param int $post_id Attachment post ID. 15 15 * @param bool|object $msg Optional. Message to display for image editor updates or errors. 16 16 * Default false. … … 316 316 * @since 2.9.0 317 317 * 318 * @param string $filename319 * @param WP_Image_Editor $image 320 * @param string $mime_type321 * @param int $post_id322 * @return bool 318 * @param string $filename Name of the file to be saved. 319 * @param WP_Image_Editor $image The image editor instance. 320 * @param string $mime_type The mime type of the image. 321 * @param int $post_id Attachment post ID. 322 * @return bool True on success, false on failure. 323 323 */ 324 324 function wp_save_image_file( $filename, $image, $mime_type, $post_id ) { … … 338 338 * @param mixed $override Value to return instead of saving. Default null. 339 339 * @param string $filename Name of the file to be saved. 340 * @param WP_Image_Editor $image WP_Image_Editor instance.341 * @param string $mime_type Image mime type.342 * @param int $post_id Post ID.340 * @param WP_Image_Editor $image The image editor instance. 341 * @param string $mime_type The mime type of the image. 342 * @param int $post_id Attachment post ID. 343 343 */ 344 344 $saved = apply_filters( 'wp_save_image_editor_file', null, $filename, $image, $mime_type, $post_id ); … … 367 367 * @param mixed $override Value to return instead of saving. Default null. 368 368 * @param string $filename Name of the file to be saved. 369 * @param WP_Image_Editor $image WP_Image_Editor instance.370 * @param string $mime_type Image mime type.371 * @param int $post_id Post ID.369 * @param WP_Image_Editor $image The image editor instance. 370 * @param string $mime_type The mime type of the image. 371 * @param int $post_id Attachment post ID. 372 372 */ 373 373 $saved = apply_filters_deprecated( 'wp_save_image_file', array( null, $filename, $image, $mime_type, $post_id ), '3.5.0', 'wp_save_image_editor_file' ); … … 618 618 /** 619 619 * Streams image in post to browser, along with enqueued changes 620 * in $_REQUEST['history']621 * 622 * @since 2.9.0 623 * 624 * @param int $post_id 625 * @return bool 620 * in `$_REQUEST['history']`. 621 * 622 * @since 2.9.0 623 * 624 * @param int $post_id Attachment post ID. 625 * @return bool True on success, false on failure. 626 626 */ 627 627 function stream_preview_image( $post_id ) { … … 748 748 749 749 /** 750 * Saves image to post along with enqueued changes751 * in $_REQUEST['history']752 * 753 * @since 2.9.0 754 * 755 * @param int $post_id 756 * @return \stdClass750 * Saves image to post, along with enqueued changes 751 * in `$_REQUEST['history']`. 752 * 753 * @since 2.9.0 754 * 755 * @param int $post_id Attachment post ID. 756 * @return stdClass 757 757 */ 758 758 function wp_save_image( $post_id ) {
Note: See TracChangeset
for help on using the changeset viewer.