Merge pull request #14505 from woocommerce/fix/14504

Fixed legacy WC_Checkout->posted warning.
This commit is contained in:
Mike Jolley 2017-04-19 15:05:21 +01:00 committed by GitHub
commit 84c9ce9ceb
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class WC_Checkout {
case 'checkout_fields' :
return $this->get_checkout_fields();
case 'posted' :
wc_doing_it_wrong( 'WC_Checkout->posted', 'Use $_POST directly, or the WC_Checkout->get_posted_data() method.', '3.0.0' );
wc_doing_it_wrong( 'WC_Checkout->posted', 'Use $_POST directly.', '3.0.0' );
return $this->legacy_posted_data;
case 'shipping_method' :
return $this->legacy_posted_data['shipping_method'];