[wp-trac] [WordPress Trac] #36255: Custom Logo: Crop UI

WordPress Trac noreply at wordpress.org
Fri Mar 18 04:55:07 UTC 2016


#36255: Custom Logo: Crop UI
--------------------------+--------------------------
 Reporter:  mor10         |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  4.5
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  ui
--------------------------+--------------------------

Comment (by westonruter):

 In the `crop-image` WP Admin Ajax request, it sends along parameters like:

 {{{
 wp_customize:on
 id:5291
 context:custom_logo
 cropDetails[x1]:300
 cropDetails[y1]:549
 cropDetails[x2]:1336
 cropDetails[y2]:1356
 cropDetails[width]:1036
 cropDetails[height]:807
 cropDetails[dst_width]:1200
 cropDetails[dst_height]:175
 action:crop-image
 }}}

 It seems the problem is that the “dst” height/width are overriding the
 width/height as defined by the user-selected crop region.

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


More information about the wp-trac mailing list