Inconsistency in 'all' hook invocation
|Reported by:||hakre||Owned by:|
|Component:||Plugins||Keywords:||has-patch needs-refresh dev-feedback|
The 'all' hook (catchall hook for any hook name) is getting inconsistently called depending on how the concrete hook is being invoked: by apply_filters, apply_filters_ref_array, do_action or do_action_ref_array.
In the simple cases (apply_filters, do_action), the hook will get all parameters passed, in the ..._ref_array cases, the hook will get only two parameters passed in which the first parameter is the name of the hook (a.k.a. tag) and the second parameter is an array of all other parameters.
Every 'all' hook-function-callbacks should be called in the same way regardless whether which of the four invocation functions have been used on that pointcut.
Additionally all four routines share a lot of the same code which could benefit of a refactoring.
Change History (26)
- Summary changed from Inconsitency in 'all' hook invocation to Inconsistency in 'all' hook invocation
- Milestone Awaiting Review deleted
- Resolution set to maybelater
- Status changed from new to closed
- Keywords dev-feedback removed
- Resolution maybelater deleted
- Status changed from closed to reopened
- Owner set to scribu
- Status changed from reopened to reviewing
- Keywords close removed
9 months ago
- Keywords needs-refresh dev-feedback added; 2nd-opinion removed
- Type changed from defect (bug) to enhancement
- Version changed from 3.0.1 to 3.0