[wp-trac] [WordPress Trac] #21630: Calling add_settings_section() without callback function throws notices
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 20 11:41:08 UTC 2012
#21630: Calling add_settings_section() without callback function throws notices
-----------------------------+------------------------------
Reporter: lightningspirit | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.4.1
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------+------------------------------
Comment (by lightningspirit):
Although those functions can be used anywhere, in my opinion their purpose
is to be used in the core mainly.
{{{__return_false}}}, {{{__return_true}}}, {{{__return_zero}}} and
{{{__return_empty_array}}} are not so well-known, besides there are no
codex entry for them...
If you can pass {{{false}}} to {{{register_post_type}}} *callbacks* and a
lot of other functions why not here too? It's just to make things easier
for developers.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21630#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list