Fix WC_Order::get_user()
This commit is contained in:
parent
e47ac33eb1
commit
f4feefc100
|
@ -710,7 +710,7 @@ abstract class WC_Abstract_Order {
|
||||||
* @return WP_User|false
|
* @return WP_User|false
|
||||||
*/
|
*/
|
||||||
public function get_user() {
|
public function get_user() {
|
||||||
return $user_id = $this->get_user_id() ? get_user_by( 'id', $user_id ) : false;
|
return $this->get_user_id() ? get_user_by( 'id', $this->get_user_id() ) : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue