[wp-trac] [WordPress Trac] #31215: wp_debug_backtrace_summary fails if args index isn't set

WordPress Trac noreply at wordpress.org
Mon Feb 2 22:10:07 UTC 2015


#31215: wp_debug_backtrace_summary fails if args index isn't set
---------------------------+-----------------------------
 Reporter:  paulschreiber  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  trunk
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 In `wp-includes/functions.php`, there's a function
 `wp_debug_backtrace_summary()`.

 If `$call['args']` is undefined, it fails like so:

 {{{
 Notice:  Undefined index: args in /srv/www/wp/wp-includes/functions.php on
 line 4493
 Stack trace:
  1. {main}() /srv/www/index.php:0
  2. require() /srv/www/index.php:4
  3. require_once() /srv/www/wp/wp-blog-header.php:16
  4. include() /srv/www/wp/wp-includes/template-loader.php:74
  5. Debug_Bar_PHP->error_handler() /srv/www/wp/wp-includes/template-
 loader.php:48
  6. wp_debug_backtrace_summary() /srv/www/wp-content/plugins/debug-
 bar/panels/class-debug-bar-php.php:35
 }}}

 Here's line 4493:
 {{{
 $caller[] = $call['function'] . "('" . str_replace( array( WP_CONTENT_DIR,
 ABSPATH ) , '', $call['args'][0] ) . "')";
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31215>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list