[wp-trac] [WordPress Trac] #29211: Customizer: extract a cropped-image control from header images
WordPress Trac
noreply at wordpress.org
Thu Jun 18 01:33:18 UTC 2015
#29211: Customizer: extract a cropped-image control from header images
------------------------------+-----------------------------
Reporter: celloexpressions | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Customize | Version: 3.9
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: javascript
------------------------------+-----------------------------
Comment (by celloexpressions):
The most important thing here with regards to the Customizer is that this
new control needs to extend `WP_Customize_Media_Control` (see the
image/background image controls for more basic implementations of
extending the base media control). Then the cropping bits within the media
modal should be able to be implemented from that child control. Once it's
working, we can go back and update the header images control to extend
this new control. If that's working, we should have no trouble at all
adding site icons into the mix with either a simple add_control or another
child control of the cropping control if that's needed.
In terms of the Customizer API, the current header images control doesn't
do a great job because it was created before the other media controls used
the media modal (think 3.4 media). So the goals would be to take the media
modal parts of that and build it onto `WP_Customize_Media_Control` as a
child control class.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29211#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list