Make WordPress Core

Changeset 12381


Ignore:
Timestamp:
12/12/2009 08:06:24 AM (15 years ago)
Author:
azaozz
Message:

Typecast to int the return of image_resize_dimensions(), fixes #7748

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/media.php

    r12351 r12381  
    326326    // the return array matches the parameters to imagecopyresampled()
    327327    // int dst_x, int dst_y, int src_x, int src_y, int dst_w, int dst_h, int src_w, int src_h
    328     return array( 0, 0, $s_x, $s_y, $new_w, $new_h, $crop_w, $crop_h );
     328    return array( 0, 0, (int) $s_x, (int) $s_y, (int) $new_w, (int) $new_h, (int) $crop_w, (int) $crop_h );
    329329
    330330}
Note: See TracChangeset for help on using the changeset viewer.