[wp-trac] [WordPress Trac] #11143: additional arguments from add_settings_field do not get called on do_settings_fields
WordPress Trac
wp-trac at lists.automattic.com
Sun Nov 15 06:21:33 UTC 2009
#11143: additional arguments from add_settings_field do not get called on
do_settings_fields
--------------------------+-------------------------------------------------
Reporter: hanilovesme | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version: 2.8.5
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
According to the codex, the function add_settings_field() accepts a
callback function, and additional arguments, as two of its parameters. It
then passes this date to do_settings_field().
However, do_settings_field() calls the callback function, but ignores the
additional arguments:
call_user_func($field[ 'callback' ]); <--- wouldn't $field[ 'args' ] be
called as the second argument here?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11143>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list