From eee631b77376b15c1edfbffbc3e12f58b71b14b2 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 3 May 2010 21:46:19 +0000 Subject: [PATCH] Don't suppress errors when including cron if WP_DEBUG. Props sivel. fixes #11507 git-svn-id: https://develop.svn.wordpress.org/trunk@14414 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/cron.php b/wp-includes/cron.php index d0f62d0e9e..921f8c8661 100644 --- a/wp-includes/cron.php +++ b/wp-includes/cron.php @@ -224,7 +224,7 @@ function spawn_cron( $local_time = 0 ) { while ( @ob_end_flush() ); flush(); - @include_once(ABSPATH . 'wp-cron.php'); + WP_DEBUG ? include_once( ABSPATH . 'wp-cron.php' ) : @include_once( ABSPATH . 'wp-cron.php' ); return; }