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.

git-svn-id: http://core.svn.wordpress.org/trunk@21113 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-06-25 20:41:37 +00:00
parent 176317abcf
commit b84c4c3686
1 changed files with 5 additions and 1 deletions

View File

@ -3622,7 +3622,11 @@ function wp_allowed_protocols() {
* @return string|array Either a string containing a reversed comma separated trace or an array of individual calls. * @return string|array Either a string containing a reversed comma separated trace or an array of individual calls.
*/ */
function wp_debug_backtrace_summary( $ignore_class = null, $skip_frames = 0, $pretty = true ) { function wp_debug_backtrace_summary( $ignore_class = null, $skip_frames = 0, $pretty = true ) {
$trace = debug_backtrace( false ); if ( version_compare( PHP_VERSION, '5.2.5', '>=' ) )
$trace = debug_backtrace( false );
else
$trace = debug_backtrace();
$caller = array(); $caller = array();
$check_class = ! is_null( $ignore_class ); $check_class = ! is_null( $ignore_class );
$skip_frames++; // skip this function $skip_frames++; // skip this function