Ticket #38862: 38862.patch
File 38862.patch, 1.0 KB (added by , 7 years ago) |
---|
-
wp-admin/includes/image-edit.php
387 387 * @return resource|false GD image resource, false otherwise. 388 388 */ 389 389 function _rotate_image_resource($img, $angle) { 390 _deprecated_function( __FUNCTION__, '3.5.0', __( 'UseWP_Image_Editor::rotate' ) );390 _deprecated_function( __FUNCTION__, '3.5.0', sprintf( __( 'Use %s' ), 'WP_Image_Editor::rotate' ) ); 391 391 if ( function_exists('imagerotate') ) { 392 392 $rotated = imagerotate($img, $angle, 0); 393 393 if ( is_resource($rotated) ) { … … 410 410 * @return resource (maybe) flipped image resource. 411 411 */ 412 412 function _flip_image_resource($img, $horz, $vert) { 413 _deprecated_function( __FUNCTION__, '3.5.0', __( 'UseWP_Image_Editor::flip' ) );413 _deprecated_function( __FUNCTION__, '3.5.0', sprintf( __( 'Use %s' ), 'WP_Image_Editor::flip' ) ); 414 414 $w = imagesx($img); 415 415 $h = imagesy($img); 416 416 $dst = wp_imagecreatetruecolor($w, $h);