[wp-trac] [WordPress Trac] #38138: Crop media - NaN error at specific &image-editor URL
WordPress Trac
noreply at wordpress.org
Wed Dec 21 14:08:38 UTC 2016
#38138: Crop media - NaN error at specific &image-editor URL
--------------------------+------------------------------
Reporter: NoseGraze | Owner: adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.6.1
Severity: major | Resolution:
Keywords: needs-patch | Focuses: javascript
--------------------------+------------------------------
Comment (by NoseGraze):
Sorry about that @adamsilverstein. Not sure why the code got removed. But
yes, ultimately the code in the Codex helps you create a simple media
frame. When opened, the right-hand side has this:
[[Image(https://www.nosegraze.com/wp-content/uploads/2016/12/wp-edit-
image.png)]]
When clicking "Edit Image", it opens that URL you checked in a new tab (
`wp-admin/post.php?post=25460&action=edit&image-editor` ). And that's when
it breaks.
Whereas if you click "Edit Image" in the "Set Featured Image" modal, it
doesn't open in a new tab. It opens the "Edit Image" pane directly in the
modal.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38138#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list