[wp-trac] [WordPress Trac] #34893: Improve Customizer setting validation model

WordPress Trac noreply at wordpress.org
Sun Jun 26 11:54:25 UTC 2016


#34893: Improve Customizer setting validation model
-------------------------------------------------+-------------------------
 Reporter:  westonruter                          |       Owner:
     Type:  enhancement                          |  westonruter
 Priority:  high                                 |      Status:  closed
Component:  Customize                            |   Milestone:  4.6
 Severity:  normal                               |     Version:  3.4
 Keywords:  has-patch has-screenshots has-unit-  |  Resolution:  fixed
  tests needs-dev-note commit                    |     Focuses:  javascript
-------------------------------------------------+-------------------------

Comment (by westonruter):

 In [changeset:"37867"]:
 {{{
 #!CommitTicketReference repository="" revision="37867"
 Customize: Always define functions `reflowPaneContents`,
 `findControlsForSettings`, and `_handleSettingValidities` on
 `wp.customize`.

 Moves definitions of functions outside of a `jQuery.ready()` callback, as
 these functions needn't be deferred to DOM ready. This change also ensures
 that the functions are available if `customize-controls` is enqueued
 outside of the Customizer context, as the ready callback short-circuits if
 `_wpCustomizeSettings` is not defined. The `findControlsForSettings` and
 `_handleSettingValidities` functions were misplaced in r37700.

 See #34893.
 See #36944.
 See #29071.
 }}}

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


More information about the wp-trac mailing list