Deprecate the "accepted args" argument in add_filter() and add_action()
|Reported by:||markjaquith||Owned by:|
|Cc:||scribu, westi, nbachiyski, mikeschinkel@…, wp-trac@…, lkraav, westonruter@…, contact@…, tom@…, nashwan.doaqan@…|
There is no harm in passing additional arguments to action/hook callbacks. Why do we force developers to explicitly ask for additional arguments to be passed? It is a maximum, and it doesn't matter if the maximum is exceeded. We can just pass all the arguments, all the time. Callbacks can use them, or ignore them. add_action() and add_filter() can lose their 4th argument.
Ran this by koopersmith and beaulebens, they couldn't find any reasons this would be a problem.