WordPress.org

Make WordPress Core

Ticket #11477: ticket-11477-part3-ver1.patch

File ticket-11477-part3-ver1.patch, 516 bytes (added by miqrogroove, 5 years ago)

Type juggle first Aspect ratio field 'x' as float. Fixes points 6 and 9 out of 19.

  • image-edit.dev.js

     
    535535        }, 
    536536 
    537537        setRatioSelection : function(postid, n, el) { 
    538                 var sel, r, x = this.intval( $('#imgedit-crop-width-' + postid).val() ), 
     538                var sel, r, x = parseFloat( $('#imgedit-crop-width-' + postid).val() ), 
    539539                        y = this.intval( $('#imgedit-crop-height-' + postid).val() ), 
    540540                        h = $('#image-preview-' + postid).height(); 
    541541