[wp-trac] [WordPress Trac] #38138: Crop media - NaN error at specific &image-editor URL

WordPress Trac noreply at wordpress.org
Fri Jan 27 18:29:50 UTC 2017


#38138: Crop media - NaN error at specific &image-editor URL
------------------------------+------------------------------
 Reporter:  NoseGraze         |       Owner:  adamsilverstein
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.8
Component:  Media             |     Version:  4.6.1
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:  javascript
------------------------------+------------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40020"]:
 {{{
 #!CommitTicketReference repository="" revision="40020"
 Media: ensure JavaScript initialized when media edit screen is loaded
 directly.

 Fix a JavaScript error when the media edit screen is loaded directly via a
 url such as `/wp-admin/post.php?post={post_id}&action=edit&image-editor`.
 Add a check in `imgLoaded` for `this.hold.sizer` which is set up during
 initialization and required for the cropping tool. Call `init` if this is
 undefined.

 Props NoseGraze.
 Fixes #38138.
 }}}

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


More information about the wp-trac mailing list