Don't load frontend files during cron Closes #7183

This commit is contained in:
Mike Jolley 2015-01-23 11:09:03 +00:00
parent eb68b1d688
commit e7b4ecfbdc
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ final class WooCommerce {
case 'ajax' :
return defined( 'DOING_AJAX' );
case 'frontend' :
return ! is_admin() || defined( 'DOING_AJAX' );
return ( ! is_admin() || defined( 'DOING_AJAX' ) ) && ! defined( 'DOING_CRON' );
}
}