Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#43488 closed enhancement (fixed)

Debug backtrace doesn’t capture hook name for do_action_ref_array

Reported by: Rarst Owned by: SergeyBiryukov
Priority: normal Milestone: 5.1
Component: General Version:
Severity: normal Keywords: has-patch has-dev-note
Cc: Focuses:

Description

wp_debug_backtrace_summary() is currently hardcoded to treat do_action() and apply_filters() as special output case with invoked hook name appended.

It misses to do the same for do_action_ref_array()

Attachments (2)

Change History (8)

#1 @Rarst
9 years ago

  • Keywords has-patch added

#2 @johnbillion
9 years ago

  • Milestone Awaiting Review → 5.0
  • Version trunk

There's apply_filters_ref_array() too.

#3 @Rarst
9 years ago

Ugh, I thought there was another one, but somehow managed to miss it in a quick search. :)

Patch updated.

#4 @SergeyBiryukov
9 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → closed

In 42820:

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.

#5 @johnbillion
8 years ago

  • Milestone 5.0 → 5.1

#6 @desrosj
8 years ago

  • Keywords has-dev-note added
Note: See TracTickets for help on using tickets.