[wp-trac] [WordPress Trac] #19809: can't pass an array(class, method) as a callback in add_settings_field()
WordPress Trac
wp-trac at lists.automattic.com
Wed Jan 11 18:32:19 UTC 2012
#19809: can't pass an array(class, method) as a callback in add_settings_field()
--------------------------+------------------------------
Reporter: mati1000 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3.1
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by nacin):
call_user_func can handle callbacks including array(class, method).
There's no requirement that the callback is a string. Your issue is likely
that whatever you are passing does not calculate to be a valid callback.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19809#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list