Data must exist

This commit is contained in:
Mike Jolley 2016-04-20 15:02:41 +01:00
parent 87bc757de8
commit 4901117f64
1 changed files with 1 additions and 5 deletions

View File

@ -3254,11 +3254,7 @@ class WC_AJAX {
$instance_id = absint( $_POST['instance_id'] );
$zone = WC_Shipping_Zones::get_zone_by( 'instance_id', $instance_id );
$shipping_method = WC_Shipping_Zones::get_shipping_method( $instance_id );
//$data = $_POST['data'];
if( isset( $_POST['data'] ) ) {
$shipping_method->set_post_data( $_POST['data'] );
}
$shipping_method->process_admin_options();
wp_send_json_success( array(