[wp-trac] [WordPress Trac] #36713: Check the number of arguments before calling call_user_func_array()
WordPress Trac
noreply at wordpress.org
Fri Apr 29 07:20:32 UTC 2016
#36713: Check the number of arguments before calling call_user_func_array()
-------------------------+------------------------
Reporter: lgedeon | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version: trunk
Severity: normal | Resolution: duplicate
Keywords: | Focuses:
-------------------------+------------------------
Changes (by swissspidy):
* status: new => closed
* resolution: => duplicate
* milestone: Awaiting Review =>
Comment:
> If you do not send enough args to an action, filter or callback,
WordPress implodes. We can prevent this by checking the function we are
about to call to see how many args it requires.
There's a patch on #14671 that does that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36713#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list