[wp-trac] [WordPress Trac] #13937: Pass list of arguments as array in add_meta_box()
WordPress Trac
wp-trac at lists.automattic.com
Sun Jun 20 21:34:11 UTC 2010
#13937: Pass list of arguments as array in add_meta_box()
--------------------------+-------------------------------------------------
Reporter: scribu | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.1
Component: General | Version:
Severity: minor | Keywords: has-patch
--------------------------+-------------------------------------------------
Comment(by scribu):
Replying to [comment:5 johnbillion]:
> Pedantic improvement if this goes in: no need for `func_num_args` and
`func_get_args` to be assigned to variables (as they're only used once
each), they can be used in place.
Yes, unfortunatly the PHP manual [http://php.net/func_get_args says]:
> Note: Because this function depends on the current scope to determine
parameter details, it cannot be used as a function parameter in versions
prior to 5.3.0. If this value must be passed, the results should be
assigned to a variable, and that variable should be passed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13937#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list