Skip to content

Commit

Permalink
Fixed bugs caused after fixing coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Nov 29, 2017
1 parent fd4fa0c commit d3a5a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-wc-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function payment_complete( $transaction_id = '' ) {
}
do_action( 'woocommerce_pre_payment_complete', $this->get_id() );

if ( ! WC()->session ) {
if ( WC()->session ) {
WC()->session->set( 'order_awaiting_payment', false );
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit-tests/order/crud.php
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ function test_get_shipping_address_map_url() {
$object->set_shipping_state( 'Boulder' );
$object->set_shipping_postcode( '00001' );
$object->set_shipping_country( 'US' );
$this->assertEquals( 'https://maps.google.com/maps?&q=34+Stonepants+avenue%2C+Rockville%2C+Bedrock%2C+Boulder%2C+00001%2C+US&z=16', $object->get_shipping_address_map_url() );
$this->assertEquals( 'https://maps.google.com/maps?&q=34%20Stonepants%20avenue%2C%20Rockville%2C%20Bedrock%2C%20Boulder%2C%2000001%2C%20US&z=16', $object->get_shipping_address_map_url() );
}

/**
Expand Down

0 comments on commit d3a5a1b

Please sign in to comment.