Skip to content

Commit

Permalink
fix(function): update dokan_get_current_user_id function (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonh3 authored and sabbir1991 committed Apr 24, 2018
1 parent be3f5c7 commit ae637a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function dokan_get_current_user_id() {
$vendor_id = get_user_meta( $staff_id, '_vendor_id', true );

if ( empty( $vendor_id ) ) {
return $user_id;
return $staff_id;
}

return $vendor_id;
Expand Down

0 comments on commit ae637a8

Please sign in to comment.