[wp-trac] [WordPress Trac] #35926: Allow controls to be registered without any associated settings

WordPress Trac noreply at wordpress.org
Mon Feb 29 07:02:27 UTC 2016


#35926: Allow controls to be registered without any associated settings
---------------------------------------------+--------------------------
 Reporter:  westonruter                      |       Owner:  westonruter
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  4.5
Component:  Customize                        |     Version:  3.4
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+--------------------------

Comment (by westonruter):

 In [changeset:"36776"]:
 {{{
 #!CommitTicketReference repository="" revision="36776"
 Customize: Fix PHP notice when calling `WP_Customize_Control::json()`
 inside `content_template()` method.

 A `temp` control is instantiated when `WP_Customize_Manager::
 render_control_templates()` is called. This control needs to explicitly
 specify an empty settings array to avoid trying to use a `temp` setting
 which won't exist.

 See #35926.
 See #29572.
 }}}

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


More information about the wp-trac mailing list