Docs: Add missing `@since` entries for functions in `wp-admin/image-edit.php`.

See #42505.

git-svn-id: https://develop.svn.wordpress.org/trunk@42756 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
SergeyBiryukov 2018-02-26 18:37:02 +00:00
parent 282923aca6
commit 74afab6950
1 changed files with 11 additions and 1 deletions

View File

@ -9,6 +9,8 @@
/** /**
* Loads the WP image-editing interface. * Loads the WP image-editing interface.
* *
* @since 2.9.0
*
* @param int $post_id Post ID. * @param int $post_id Post ID.
* @param bool|object $msg Optional. Message to display for image editor updates or errors. * @param bool|object $msg Optional. Message to display for image editor updates or errors.
* Default false. * Default false.
@ -247,6 +249,8 @@ function wp_image_editor( $post_id, $msg = false ) {
/** /**
* Streams image in WP_Image_Editor to browser. * Streams image in WP_Image_Editor to browser.
* *
* @since 2.9.0
*
* @param WP_Image_Editor $image The image editor instance. * @param WP_Image_Editor $image The image editor instance.
* @param string $mime_type The mime type of the image. * @param string $mime_type The mime type of the image.
* @param int $attachment_id The image's attachment post ID. * @param int $attachment_id The image's attachment post ID.
@ -301,7 +305,9 @@ function wp_stream_image( $image, $mime_type, $attachment_id ) {
} }
/** /**
* Saves Image to File * Saves image to file.
*
* @since 2.9.0
* *
* @param string $filename * @param string $filename
* @param WP_Image_Editor $image * @param WP_Image_Editor $image
@ -605,6 +611,8 @@ function image_edit_apply_changes( $image, $changes ) {
* Streams image in post to browser, along with enqueued changes * Streams image in post to browser, along with enqueued changes
* in $_REQUEST['history'] * in $_REQUEST['history']
* *
* @since 2.9.0
*
* @param int $post_id * @param int $post_id
* @return bool * @return bool
*/ */
@ -733,6 +741,8 @@ function wp_restore_image( $post_id ) {
* Saves image to post along with enqueued changes * Saves image to post along with enqueued changes
* in $_REQUEST['history'] * in $_REQUEST['history']
* *
* @since 2.9.0
*
* @param int $post_id * @param int $post_id
* @return \stdClass * @return \stdClass
*/ */