Fix: ship_to_different_address

This commit is contained in:
terence1990 2016-07-20 14:26:14 +01:00
parent bc80b75540
commit ca44110f3d
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ class WC_Checkout {
$this->posted['createaccount'] = isset( $_POST['createaccount'] ) && ! empty( $_POST['createaccount'] ) ? 1 : 0; $this->posted['createaccount'] = isset( $_POST['createaccount'] ) && ! empty( $_POST['createaccount'] ) ? 1 : 0;
$this->posted['payment_method'] = isset( $_POST['payment_method'] ) ? stripslashes( $_POST['payment_method'] ) : ''; $this->posted['payment_method'] = isset( $_POST['payment_method'] ) ? stripslashes( $_POST['payment_method'] ) : '';
$this->posted['shipping_method'] = isset( $_POST['shipping_method'] ) ? $_POST['shipping_method'] : ''; $this->posted['shipping_method'] = isset( $_POST['shipping_method'] ) ? $_POST['shipping_method'] : '';
$this->posted['ship_to_different_address'] = isset( $_POST['ship_to_different_address'] ) ? true : false; $this->posted['ship_to_different_address'] = isset( $_POST['ship_to_different_address'] ) && ! empty( $_POST['ship_to_different_address'] ) ? true : false;
if ( isset( $_POST['shiptobilling'] ) ) { if ( isset( $_POST['shiptobilling'] ) ) {
_deprecated_argument( 'WC_Checkout::process_checkout()', '2.1', 'The "shiptobilling" field is deprecated. The template files are out of date' ); _deprecated_argument( 'WC_Checkout::process_checkout()', '2.1', 'The "shiptobilling" field is deprecated. The template files are out of date' );