[wp-trac] [WordPress Trac] #36944: Display server-sent Customizer setting validation errors before save is attempted

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


#36944: Display server-sent Customizer setting validation errors before save is
attempted
---------------------------------------------+--------------------------
 Reporter:  westonruter                      |       Owner:  westonruter
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.6
Component:  Customize                        |     Version:  trunk
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------

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/36944#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list