[wp-trac] [WordPress Trac] #29211: Customizer: extract a cropped-image control from header images

WordPress Trac noreply at wordpress.org
Mon Jun 29 02: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):

 Made a good amount of progress here today. It's looking like our best
 option will be to leave the header image control as-is for now, as it's
 doing a lot more than we need for a basic cropping control. .4.diff has
 various code cleanup and refactoring to better leverage the Customizer
 API, and extracts the cropping ajax to a custom one (although it isn't yet
 functional). Patch also adds the baseline UI for site icons, using the
 cropped image control directly. I'm currently waiting for the settings
 version to be committed so that we can use the same functions for the
 output with only the administration layer being done in two places.

 Once the basic cropping control is completed and working well for site
 icons, we can do a custom site icon control that extends it and adds
 browser/device previews, including live-updating the favicon in-browser.

 The cropping could theoretically be abstracted further to also be used for
 the settings version, but that's not 4.3 material, as the current
 Customizer iteration is heavily rooted in the Customizer API. cc @obenland

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


More information about the wp-trac mailing list