WordPress.org

Make WordPress Core

Changeset 42820


Ignore:
Timestamp:
03/10/2018 12:04:43 AM (16 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r42801 r42820  
    54085408            $caller[] = "{$call['class']}{$call['type']}{$call['function']}";
    54095409        } else {
    5410             if ( in_array( $call['function'], array( 'do_action', 'apply_filters' ) ) ) {
     5410            if ( in_array( $call['function'], array( 'do_action', 'apply_filters', 'do_action_ref_array', 'apply_filters_ref_array' ) ) ) {
    54115411                $caller[] = "{$call['function']}('{$call['args'][0]}')";
    54125412            } elseif ( in_array( $call['function'], array( 'include', 'include_once', 'require', 'require_once' ) ) ) {
Note: See TracChangeset for help on using the changeset viewer.