Make WordPress Core

Ticket #31353: image-edit2.php.patch

File image-edit2.php.patch, 700 bytes (added by NikV, 9 years ago)
  • wp-admin/includes/image-edit.php

     
    77 */
    88
    99/**
     10 * The WordPress image editor function
     11 *
    1012 * @param int $post_id
    1113 * @param bool|object $msg
    1214 */
     
    330332        }
    331333}
    332334
     335/**
     336 * Image preview ratio. Not Public.
     337 *
     338 * @param $w Width
     339 * @param $h Height
     340 *
     341 * @return float|int
     342 */
    333343function _image_get_preview_ratio($w, $h) {
    334344        $max = max($w, $h);
    335345        return $max > 400 ? (400 / $max) : 1;
     
    561571}
    562572
    563573/**
     574 * Restore Image
     575 *
    564576 * @param int $post_id
    565577 * @return stdClass
    566578 */