Make WordPress Core


Ignore:
Timestamp:
09/20/2019 10:01:36 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6.

Props jrf.
Fixes #48074.

File:
1 edited

Legend:

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

    r46206 r46214  
    60056005    static $truncate_paths;
    60066006
    6007     if ( version_compare( PHP_VERSION, '5.2.5', '>=' ) ) {
    6008         $trace = debug_backtrace( false );
    6009     } else {
    6010         $trace = debug_backtrace();
    6011     }
    6012 
     6007    $trace       = debug_backtrace( false );
    60136008    $caller      = array();
    60146009    $check_class = ! is_null( $ignore_class );
Note: See TracChangeset for help on using the changeset viewer.