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

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 30 16:49:02 UTC 2012


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

Comment (by Otto42):

 Is there an easy way for code to change the transport value of an existing
 setting?

 For example, I tried to modify a theme to call $sett =
 $wp_customize->get_setting('blogname'), and then to just set the transport
 on that object with $sett->transport = 'postMessage'.

 However, it gives me back a 500 error. Presumably that's protected
 somewhere along the line. I can see the value there if I dump it, but
 attempting to change it = death.

 Calling remove_setting and then readding it with the postMessage transport
 does work, but is obviously less than ideal.

 I'm trying to do all this at the customize_register action hook.

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


More information about the wp-trac mailing list