[wp-trac] [WordPress Trac] #19910: Appearance Improvements: Theme Customization Frame

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 27 22:06:27 UTC 2012


#19910: Appearance Improvements: Theme Customization Frame
----------------------------+--------------------------
 Reporter:  koopersmith     |       Owner:  koopersmith
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  3.4
Component:  Themes          |     Version:  3.3.1
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+--------------------------

Comment (by koopersmith):

 Before anything, I'd like to note that this is a first pass and certain
 portions are underdeveloped or unfinished. Please take everything with a
 grain of salt.

 Andrew, I hope this addresses a few of your questions.

 '''Why use a class for WP_Customize?'''

 The WP_Customize class does not just include customize-controls.php. It
 also handles correctly previewing a theme (in both the admin and front-
 end), registering and maintaining sections and settings, and properly
 switching the theme and saving settings.

 '''Why is this in wp-includes?'''

 To preview a theme setting, we need to be able to override it on the front
 end; the code has to run there. On top of that, it would be fairly easy to
 alter the WP_Customize class to run completely independent of the admin
 (if we removed the final keyword, that is).

 '''What's going on in customize-base.js?'''

 There is some underlying sugar there for several reasons. The most
 prominent is not fully operational yet, which is that there will be an
 option for the preview to apply changes without completely refreshing the
 page. This option will be facilitated by postMessage and synchronized
 values. Instead of writing code to individually watch, bind and
 synchronize each input, the sugar provides a system to keep all of them in
 sync with only a few lines of code.

 It's important to note that this is JS-only UI. One of the main goals here
 is to make it easy for plugins and themes to add to the customize controls
 and preview without having to unbind large portions of core code.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19910#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list