diff --git a/src/wp-admin/includes/image-edit.php b/src/wp-admin/includes/image-edit.php index aa576c7140..58303eff78 100644 --- a/src/wp-admin/includes/image-edit.php +++ b/src/wp-admin/includes/image-edit.php @@ -272,7 +272,8 @@ function wp_stream_image( $image, $mime_type, $attachment_id ) { return true; } else { - _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) ); + /* translators: 1: $image, 2: WP_Image_Editor */ + _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) ); /** * Filters the GD image resource to be streamed to the browser. @@ -340,7 +341,8 @@ function wp_save_image_file( $filename, $image, $mime_type, $post_id ) { return $image->save( $filename, $mime_type ); } else { - _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) ); + /* translators: 1: $image, 2: WP_Image_Editor */ + _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) ); /** This filter is documented in wp-admin/includes/image-edit.php */ $image = apply_filters( 'image_save_pre', $image, $post_id ); @@ -486,7 +488,8 @@ function _crop_image_resource( $img, $x, $y, $w, $h ) { */ function image_edit_apply_changes( $image, $changes ) { if ( is_resource( $image ) ) { - _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) ); + /* translators: 1: $image, 2: WP_Image_Editor */ + _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be a %2$s object.' ), '$image', 'WP_Image_Editor' ) ); } if ( ! is_array( $changes ) ) {