mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6.
Props jrf. Fixes #48074. git-svn-id: https://develop.svn.wordpress.org/trunk@46214 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -6004,12 +6004,7 @@ function wp_allowed_protocols() {
|
||||
function wp_debug_backtrace_summary( $ignore_class = null, $skip_frames = 0, $pretty = true ) {
|
||||
static $truncate_paths;
|
||||
|
||||
if ( version_compare( PHP_VERSION, '5.2.5', '>=' ) ) {
|
||||
$trace = debug_backtrace( false );
|
||||
} else {
|
||||
$trace = debug_backtrace();
|
||||
}
|
||||
|
||||
$trace = debug_backtrace( false );
|
||||
$caller = array();
|
||||
$check_class = ! is_null( $ignore_class );
|
||||
$skip_frames++; // skip this function
|
||||
|
||||
Reference in New Issue
Block a user