mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
I18N: Remove unnecessary __() calls in _rotate_image_resource() and _flip_image_resource().
Use `_deprecated_function()`'s native strings. Props ramiy. Fixes #38862. git-svn-id: https://develop.svn.wordpress.org/trunk@39314 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
78ae6a3ac0
commit
d9c848142e
@ -387,7 +387,7 @@ function _image_get_preview_ratio($w, $h) {
|
||||
* @return resource|false GD image resource, false otherwise.
|
||||
*/
|
||||
function _rotate_image_resource($img, $angle) {
|
||||
_deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::rotate' ) );
|
||||
_deprecated_function( __FUNCTION__, '3.5.0', 'WP_Image_Editor::rotate()' );
|
||||
if ( function_exists('imagerotate') ) {
|
||||
$rotated = imagerotate($img, $angle, 0);
|
||||
if ( is_resource($rotated) ) {
|
||||
@ -410,7 +410,7 @@ function _rotate_image_resource($img, $angle) {
|
||||
* @return resource (maybe) flipped image resource.
|
||||
*/
|
||||
function _flip_image_resource($img, $horz, $vert) {
|
||||
_deprecated_function( __FUNCTION__, '3.5.0', __( 'Use WP_Image_Editor::flip' ) );
|
||||
_deprecated_function( __FUNCTION__, '3.5.0', 'WP_Image_Editor::flip()' );
|
||||
$w = imagesx($img);
|
||||
$h = imagesy($img);
|
||||
$dst = wp_imagecreatetruecolor($w, $h);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user