WordPress.org

Make WordPress Core

Opened 15 months ago

Closed 15 months ago

Last modified 4 months ago

#43488 closed enhancement (fixed)

Debug backtrace doesn’t capture hook name for do_action_ref_array

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

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
15 months ago

  • Keywords has-patch added

#2 @johnbillion
15 months ago

  • Milestone changed from Awaiting Review to 5.0
  • Version trunk deleted

There's apply_filters_ref_array() too.

#3 @Rarst
15 months ago

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

Patch updated.

#4 @SergeyBiryukov
15 months ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to 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 months ago

  • Milestone changed from 5.0 to 5.1
Note: See TracTickets for help on using tickets.