mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Docs: Standardize hook docs in wp-admin/* to use third-person singular verbs per the inline documentation standards for PHP.
See #36913. git-svn-id: https://develop.svn.wordpress.org/trunk@37488 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -243,7 +243,7 @@ function wp_stream_image( $image, $mime_type, $post_id ) {
|
||||
if ( $image instanceof WP_Image_Editor ) {
|
||||
|
||||
/**
|
||||
* Filter the WP_Image_Editor instance for the image to be streamed to the browser.
|
||||
* Filters the WP_Image_Editor instance for the image to be streamed to the browser.
|
||||
*
|
||||
* @since 3.5.0
|
||||
*
|
||||
@@ -260,7 +260,7 @@ function wp_stream_image( $image, $mime_type, $post_id ) {
|
||||
_deprecated_argument( __FUNCTION__, '3.5', __( '$image needs to be an WP_Image_Editor object' ) );
|
||||
|
||||
/**
|
||||
* Filter the GD image resource to be streamed to the browser.
|
||||
* Filters the GD image resource to be streamed to the browser.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @deprecated 3.5.0 Use image_editor_save_pre instead.
|
||||
@@ -302,7 +302,7 @@ function wp_save_image_file( $filename, $image, $mime_type, $post_id ) {
|
||||
$image = apply_filters( 'image_editor_save_pre', $image, $post_id );
|
||||
|
||||
/**
|
||||
* Filter whether to skip saving the image file.
|
||||
* Filters whether to skip saving the image file.
|
||||
*
|
||||
* Returning a non-null value will short-circuit the save method,
|
||||
* returning that value instead.
|
||||
@@ -328,7 +328,7 @@ function wp_save_image_file( $filename, $image, $mime_type, $post_id ) {
|
||||
$image = apply_filters( 'image_save_pre', $image, $post_id );
|
||||
|
||||
/**
|
||||
* Filter whether to skip saving the image file.
|
||||
* Filters whether to skip saving the image file.
|
||||
*
|
||||
* Returning a non-null value will short-circuit the save method,
|
||||
* returning that value instead.
|
||||
@@ -515,7 +515,7 @@ function image_edit_apply_changes( $image, $changes ) {
|
||||
if ( $image instanceof WP_Image_Editor ) {
|
||||
|
||||
/**
|
||||
* Filter the WP_Image_Editor instance before applying changes to the image.
|
||||
* Filters the WP_Image_Editor instance before applying changes to the image.
|
||||
*
|
||||
* @since 3.5.0
|
||||
*
|
||||
@@ -526,7 +526,7 @@ function image_edit_apply_changes( $image, $changes ) {
|
||||
} elseif ( is_resource( $image ) ) {
|
||||
|
||||
/**
|
||||
* Filter the GD image resource before applying changes to the image.
|
||||
* Filters the GD image resource before applying changes to the image.
|
||||
*
|
||||
* @since 2.9.0
|
||||
* @deprecated 3.5.0 Use wp_image_editor_before_change instead.
|
||||
|
||||
Reference in New Issue
Block a user