[wp-trac] [WordPress Trac] #37964: Allow customizer controls to be encapsulated by accepting pre-instantiated settings

WordPress Trac noreply at wordpress.org
Wed Oct 25 16:48:22 UTC 2017


#37964: Allow customizer controls to be encapsulated by accepting pre-instantiated
settings
-------------------------------------------------+-------------------------
 Reporter:  westonruter                          |       Owner:
     Type:  enhancement                          |  westonruter
 Priority:  high                                 |      Status:  closed
Component:  Customize                            |   Milestone:  4.9
 Severity:  normal                               |     Version:  3.4
 Keywords:  has-patch needs-unit-tests needs-    |  Resolution:  fixed
  dev-note                                       |     Focuses:  javascript
-------------------------------------------------+-------------------------

Comment (by westonruter):

 In [changeset:"42024"]:
 {{{
 #!CommitTicketReference repository="" revision="42024"
 Customize: Link `elements` prior to embedding to prevent possible errors
 when a control is associated with a non-existent section.

 Fixes issue specifically with attempting to access an orphaned control's
 `elements` immediately after it has been added. Normally this would not
 happen because a control would not be registered without a section, and
 also a control should only be interacted with once its `embedded` deferred
 has been resolved.

 Also harden logic for gathering list of deferred setting IDs.

 See #37964.
 Fixes #42330.
 }}}

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


More information about the wp-trac mailing list