[wp-trac] [WordPress Trac] #18532: resized image dimensions incorrectly floored instead of rounded

WordPress Trac noreply at wordpress.org
Thu Oct 2 05:02:47 UTC 2014


#18532: resized image dimensions incorrectly floored instead of rounded
-------------------------------------+-----------------------------
 Reporter:  _ck_                     |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Media                    |     Version:  2.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+-----------------------------

Comment (by wonderboymusic):

 The default precision for `round()` is zero, which means it will return an
 int:
 http://php.net/manual/en/function.round.php#refsect1-function.round-
 examples

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18532#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list