From 039b8aa6e5e5803b38b51420454fed0b3097b9dc Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@14414 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }