Impossible to access current priority with WP_Hook
|Reported by:||Rarst||Owned by:||pento|
|Component:||Plugins||Keywords:||has-patch has-unit-tests commit dev-reviewed|
While there was never a public API for it, the specifics of implementation had previously allowed to access current priority within a hook via key( $wp_filter[ current_filter() ] ).
This seems to no longer be a case with 4.7 implementation based on WP_Hook which both changes what this expression returns (string callbacks) and seems to hide priority data in private property.
Given that implementation both breaks existing way to do it and doesn't open a new way to it breaks all code that needs access to current priority state without alternative.
Change History (12)
- Component changed from General to Plugins
- Keywords has-patch reporter-feedback needs-unit-tests added
- Milestone changed from Awaiting Review to 4.7
- Owner set to pento
- Status changed from new to assigned