Switched conditon by accident

This commit is contained in:
Mike Jolley 2019-04-17 12:57:02 +01:00
parent e354bb90aa
commit 6e5f1e2059
1 changed files with 1 additions and 1 deletions

View File

@ -272,7 +272,7 @@ class WC_Shipping_Zone extends WC_Legacy_Shipping_Zone {
*/ */
do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store ); do_action( 'woocommerce_before_' . $this->object_type . '_object_save', $this, $this->data_store );
if ( null === $this->get_id() ) { if ( null !== $this->get_id() ) {
$this->data_store->update( $this ); $this->data_store->update( $this );
} else { } else {
$this->data_store->create( $this ); $this->data_store->create( $this );