[wp-trac] [WordPress Trac] #64561: Add to wp_trigger_error() log output information about the source of the error

WordPress Trac noreply at wordpress.org
Wed Feb 4 07:07:12 UTC 2026


#64561: Add to wp_trigger_error() log output information about the source of the
error
-------------------------+-----------------------------
 Reporter:  oglekler     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:  6.4
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:
-------------------------+-----------------------------
Changes (by westonruter):

 * milestone:  Awaiting Review => Future Release


Comment:

 Relatedly, [61587] just landed which obtains the offending function via:

 {{{#!php
 $trace         = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 2 );
 $function_name = ( $trace[1]['class'] ?? '' ) . ( $trace[1]['type'] ?? ''
 ) . $trace[1]['function'];
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64561#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list