[wp-trac] [WordPress Trac] #42330: Customizer errors when control is associated with non-existing section

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


#42330: Customizer errors when control is associated with non-existing section
--------------------------+--------------------------
 Reporter:  prajaktag     |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.9
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

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


More information about the wp-trac mailing list