Fix WC_Order::get_user()

This commit is contained in:
Max Rice 2014-07-27 23:30:21 -04:00
parent e47ac33eb1
commit f4feefc100
1 changed files with 1 additions and 1 deletions

View File

@ -710,7 +710,7 @@ abstract class WC_Abstract_Order {
* @return WP_User|false
*/
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;
}
/**