[wp-trac] [WordPress Trac] #60212: apply_filters_deprecated() should tell the caller location
WordPress Trac
noreply at wordpress.org
Tue Jan 9 12:57:09 UTC 2024
#60212: apply_filters_deprecated() should tell the caller location
--------------------------+-----------------------------
Reporter: Cybr | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When calling this inside a plugin:
{{{#!php
add_filter( 'contextual_help_list', function( $a ) { return $a; } );
}}}
We get:
* **Deprecated:** Hook contextual_help_list is deprecated since version
3.3.0! Use get_current_screen()->add_help_tab(),
get_current_screen()->remove_help_tab() instead. in **/www/public/wp-
includes/functions.php** on line **6033**
This points directly to the `trigger_error()` call inside function
`wp_trigger_error()`, which isn't useful in resolving the deprecation
issue.
It'd be helpful to assert the location of the deprecated filter call.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60212>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list