Make WordPress Core

Ticket #38862: 38862.patch

File 38862.patch, 1.0 KB (added by ramiy, 9 years ago)
  • wp-admin/includes/image-edit.php

     
    387387 * @return resource|false GD image resource, false otherwise.
    388388 */
    389389function _rotate_image_resource($img, $angle) {
    390         _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::rotate' ) );
     390        _deprecated_function( __FUNCTION__, '3.5.0', sprintf( __( 'Use %s' ), 'WP_Image_Editor::rotate' ) );
    391391        if ( function_exists('imagerotate') ) {
    392392                $rotated = imagerotate($img, $angle, 0);
    393393                if ( is_resource($rotated) ) {
     
    410410 * @return resource (maybe) flipped image resource.
    411411 */
    412412function _flip_image_resource($img, $horz, $vert) {
    413         _deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::flip' ) );
     413        _deprecated_function( __FUNCTION__, '3.5.0', sprintf( __( 'Use %s' ), 'WP_Image_Editor::flip' ) );
    414414        $w = imagesx($img);
    415415        $h = imagesy($img);
    416416        $dst = wp_imagecreatetruecolor($w, $h);