[wp-trac] [WordPress Trac] #21630: Calling add_settings_section() without callback function throws notices
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 30 03:34:24 UTC 2012
#21630: Calling add_settings_section() without callback function throws notices
------------------------------+--------------------
Reporter: lightningspirit | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Administration | Version: 3.4.1
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+--------------------
Changes (by nacin):
* keywords: has-patch => has-patch commit
* milestone: Awaiting Review => 3.5
Comment:
The `__return` methods are designed for plugin usage, in particular as
callbacks. Mainly for actions and filters, but this works too.
I usually pass `__return_false` here as well, but I also find it to be
lame, and agree with this patch.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21630#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list