[wp-trac] [WordPress Trac] #38138: Crop media - NaN error at specific &image-editor URL
WordPress Trac
noreply at wordpress.org
Fri Sep 23 09:19:57 UTC 2016
#38138: Crop media - NaN error at specific &image-editor URL
--------------------------+-----------------------------
Reporter: NoseGraze | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.6.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The problem can be reproduced using [[http://pastebin.com/Y7AB7Y8Y|this
code]] that's taken from
[[https://codex.wordpress.org/Javascript_Reference/wp.media|this codex
article]] (forgive the ugliness).
- Install that plugin. It adds a meta box to the Edit Post page with a
link that triggers the wp.media frame.
- Click on the link to open the media frame.
- When inside the frame, click on an image.
- Click "Edit Image".
- This takes you to this URL in a new tab: http://localhost/wp/wp-
admin/post.php?post=1706&action=edit&image-editor
- Entering a value in "Scale Image" results in the other value being "NaN"
(see screenshot).
Or, with no plugins activated, directly visit any "Edit Media" page using
this URL format: http://localhost/wp/wp-
admin/post.php?post=1706&action=edit&image-editor and try to crop the
image. (My point being that using wp.media directs you to that URL.)
This problem can be "fixed" by clicking "Cancel" on the image edit, then
clicking "Edit Image" again, but that shouldn't be necessary. :P
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38138>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list