Hide get_formatted_legacy notices when doing ajax.

This commit is contained in:
Mike Jolley 2015-08-11 12:09:54 +01:00
parent faa8ab02e0
commit 5b786261e1
2 changed files with 4 additions and 1 deletions

View File

@ -140,7 +140,9 @@ class WC_Order_Item_Meta {
* @return array
*/
public function get_formatted_legacy( $hideprefix = '_' ) {
_deprecated_function( 'get_formatted_legacy', '2.4', 'Item Meta Data is being called with legacy arguments' );
if ( ! is_ajax() ) {
_deprecated_function( 'get_formatted_legacy', '2.4', 'Item Meta Data is being called with legacy arguments' );
}
$formatted_meta = array();

View File

@ -166,6 +166,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Tweak - Made tab panel selector more specific to avoid theme conflicts.
* Tweak - Made checkout make use of new ajax endpoints.
* Tweak - woocommerce_force_ssl_checkout no longer needs to check for admin-ajax actions.
* Tweak - Hide get_formatted_legacy notices when doing ajax.
= 2.4.1 - 10/08/2015 =
* Fix - Tweaked the 2.4 upgrade routine to disable refund emails during update.