Merge pull request #7437 from DeanMarkTaylor/patch-1

Fix deprecated notice for WP_User->id usage
This commit is contained in:
Claudio Sanches 2015-02-15 20:16:05 -02:00
commit bbc4bd8f33
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ class WC_Shortcode_My_Account {
return false; return false;
} }
if ( is_multisite() && ! is_user_member_of_blog( $user_data->id, get_current_blog_id() ) ) { if ( is_multisite() && ! is_user_member_of_blog( $user_data->ID, get_current_blog_id() ) ) {
wc_add_notice( __( 'Invalid username or e-mail.', 'woocommerce' ), 'error' ); wc_add_notice( __( 'Invalid username or e-mail.', 'woocommerce' ), 'error' );
return false; return false;
} }