[buddypress-trac] [BuddyPress Trac] #6754: `widget()` methods should be self-sufficient

buddypress-trac noreply at wordpress.org
Sat Nov 28 03:28:34 UTC 2015


#6754: `widget()` methods should be self-sufficient
--------------------------+----------------------------------------
 Reporter:  boonebgorges  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  API           |    Version:
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
--------------------------+----------------------------------------
 In order to work properly in the context of the Customizer, all `widget()`
 methods must be self-sufficient. That is, they should assume that the
 `$instance` array passed to the function may sometimes be empty. As such,
 each widget class should have a way of defining the default widget
 settings independent of the `form()` or `instance()` methods. A
 `default_args()` or `default_settings()` method seems like a reasonable
 technique.

 See https://buddypress.trac.wordpress.org/ticket/6747#comment:5

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6754>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list