WordPress.org

Make WordPress Core

Ticket #47406: 47406.patch

File 47406.patch, 1.5 KB (added by ramiy, 15 months ago)
  • wp-admin/includes/image-edit.php

     
    275275
    276276                return true;
    277277        } else {
    278                 _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) );
     278                /* translators: 1: $image 2. WP_Image_Editor */
     279                _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be an %2$s object.' ), '$image', 'WP_Image_Editor' ) );
    279280
    280281                /**
    281282                 * Filters the GD image resource to be streamed to the browser.
     
    343344
    344345                return $image->save( $filename, $mime_type );
    345346        } else {
    346                 _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) );
     347                /* translators: 1: $image 2. WP_Image_Editor */
     348                _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be an %2$s object.' ), '$image', 'WP_Image_Editor' ) );
    347349
    348350                /** This filter is documented in wp-admin/includes/image-edit.php */
    349351                $image = apply_filters( 'image_save_pre', $image, $post_id );
     
    489491 */
    490492function image_edit_apply_changes( $image, $changes ) {
    491493        if ( is_resource( $image ) ) {
    492                 _deprecated_argument( __FUNCTION__, '3.5.0', __( '$image needs to be an WP_Image_Editor object' ) );
     494                /* translators: 1: $image 2. WP_Image_Editor */
     495                _deprecated_argument( __FUNCTION__, '3.5.0', sprintf( __( '%1$s needs to be an %2$s object.' ), '$image', 'WP_Image_Editor' ) );
    493496        }
    494497
    495498        if ( ! is_array( $changes ) ) {