General: In wp_debug_backtrace_summary()
, capture hook name for do_action_ref_array()
and apply_filters_ref_array()
as well.
Props Rarst. Fixes #43488. git-svn-id: https://develop.svn.wordpress.org/trunk@42820 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9b713c6d12
commit
5a2ea62a10
@ -5407,7 +5407,7 @@ function wp_debug_backtrace_summary( $ignore_class = null, $skip_frames = 0, $pr
|
||||
|
||||
$caller[] = "{$call['class']}{$call['type']}{$call['function']}";
|
||||
} else {
|
||||
if ( in_array( $call['function'], array( 'do_action', 'apply_filters' ) ) ) {
|
||||
if ( in_array( $call['function'], array( 'do_action', 'apply_filters', 'do_action_ref_array', 'apply_filters_ref_array' ) ) ) {
|
||||
$caller[] = "{$call['function']}('{$call['args'][0]}')";
|
||||
} elseif ( in_array( $call['function'], array( 'include', 'include_once', 'require', 'require_once' ) ) ) {
|
||||
$caller[] = $call['function'] . "('" . str_replace( $truncate_paths, '', wp_normalize_path( $call['args'][0] ) ) . "')";
|
||||
|
Loading…
Reference in New Issue
Block a user