WordPress.org

Make WordPress Core

Changeset 21113


Ignore:
Timestamp:
06/25/2012 08:41:37 PM (6 years ago)
Author:
nacin
Message:

Don't call debug_backtrace() with an argument for PHP 5.2.4, which is currently the lowest version we support. props swekitsune, kurtpayne. fixes #20953.

File:
1 edited

Legend:

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

    r20715 r21113  
    36233623 */
    36243624function wp_debug_backtrace_summary( $ignore_class = null, $skip_frames = 0, $pretty = true ) {
    3625     $trace  = debug_backtrace( false );
     3625    if ( version_compare( PHP_VERSION, '5.2.5', '>=' ) )
     3626        $trace = debug_backtrace( false );
     3627    else
     3628        $trace = debug_backtrace();
     3629
    36263630    $caller = array();
    36273631    $check_class = ! is_null( $ignore_class );
Note: See TracChangeset for help on using the changeset viewer.