WordPress.org

Make WordPress Core

Changeset 21119


Ignore:
Timestamp:
06/26/12 03:02:13 (22 months 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 for 3.4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.4/wp-includes/functions.php

    r20715 r21119  
    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.