[wp-trac] [WordPress Trac] #21785: Add header image uploads with cropping to the customizer
WordPress Trac
noreply at wordpress.org
Tue Mar 25 15:57:39 UTC 2014
#21785: Add header image uploads with cropping to the customizer
----------------------------+-----------------------------------------
Reporter: nacin | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.9
Component: Appearance | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript, administration
----------------------------+-----------------------------------------
Comment (by ehg):
attachment:21785-suggested-dimensions.diff is a WIP patch that replaces
the sidebar attachment details with a theme suggested dimensions view.
I'm still not sure if it's worth doing this, as it's a significant patch
for what I perceive as little value, with a bit of a weird UX. However, I
could be Doing It Wrong™ :)
In the patch:
* New media.view.Attachment.SuggestedDimensions that renders a new crop-
suggested-dimensions template, which is based on a cut down attachment-
details template.
* Render the SuggestedDimensions view if crop options are supplied to
wp.media(). I'm setting the cropOptions in the attachment model here,
which feels wrong.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21785#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list