display_errors > error_reporting

This commit is contained in:
Mike Jolley 2015-08-12 17:45:49 +01:00
parent 7a58c5417c
commit 19e8cc4634
2 changed files with 3 additions and 3 deletions

View File

@ -46,8 +46,8 @@ class WC_AJAX {
if ( ! defined( 'WC_DOING_AJAX' ) ) {
define( 'WC_DOING_AJAX', true );
}
// Turn off error_reporting during AJAX events to prevent malformed JSON
error_reporting(0);
// Turn off display_errors during AJAX events to prevent malformed JSON
@ini_set( 'display_errors', 0 );
}
}

View File

@ -164,7 +164,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Fix - Tab hiding with some theme markup.
* Fix - Ajax variations: stripslashes to fix attributes with quotes.
* Fix - No longer returns to the first variation list page when deleting one variation.
* Tweak - Disable error_reporting during ajax requests to prevent malformed JSON.
* Tweak - Disable display_errors during ajax requests to prevent malformed JSON.
* Tweak - When merging shipping taxes with a shipping rate taxes, ensure shipping rate taxes is not malformed.
= 2.4.2 - 11/08/2015 =