Changed explicit check to implicit.

This commit is contained in:
Peter Fabian 2018-08-13 19:44:33 +02:00
parent 84e008337c
commit ca08beaa42
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class WC_Shortcode_Checkout {
unset( WC()->session->order_awaiting_payment );
// In case order is created from admin, but paid by the actual customer, store the ip address of the payer.
if ( false !== $order ) {
if ( $order ) {
$order->set_customer_ip_address( WC_Geolocation::get_ip_address() );
$order->save();
}