[wp-trac] [WordPress Trac] #38799: Normalize the registration of settings and control dependencies in the customize api

WordPress Trac noreply at wordpress.org
Mon Jan 23 17:43:03 UTC 2017


#38799: Normalize the registration of settings and control dependencies in the
customize api
-------------------------+-------------------------
 Reporter:  nikeo        |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  low          |   Milestone:
Component:  Customize    |     Version:
 Severity:  normal       |  Resolution:  maybelater
 Keywords:               |     Focuses:  javascript
-------------------------+-------------------------

Comment (by westonruter):

 > How to make sure that the server active_callback and the js visibility
 play nice together ?

 One way to do this is to just ignore whatever the server sends and just
 honor what we set in JS. For example:


 {{{#!js
 control.active.validate = function() {
     return control.getDependencyActivity();
 };
 }}}

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


More information about the wp-trac mailing list