[wp-trac] [WordPress Trac] #35926: Allow controls to be registered without any associated settings
WordPress Trac
noreply at wordpress.org
Wed Feb 24 07:04:18 UTC 2016
#35926: Allow controls to be registered without any associated settings
------------------------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.5
Component: Customize | Version: 3.4
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+--------------------------
Changes (by westonruter):
* owner: => westonruter
* status: new => accepted
Comment:
@celloexpressions if you register a control with empty/invalid settings at
the moment, it throws a fatal error: “Call to a member function
check_capabilities() on a non-object.” Anyway, it's not changing the
paradigm, it's just ensuring that you can create a control without having
to specify settings (expanding the paradigm). I expect this was not
accounted for in the original architecture of the Customizer because
controls were originally intended to always have related settings.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35926#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list