From 1b38e46fd55e0287a8596e678746f2a6e654b264 Mon Sep 17 00:00:00 2001 From: Dean Taylor Date: Sun, 15 Feb 2015 19:02:27 +0000 Subject: [PATCH] Fix deprecated notice for WP_User->id usage Fix E_USER_NOTICE WP_User->id was called with an argument that is deprecated since version 2.1! Use WP_User->ID instead --- includes/shortcodes/class-wc-shortcode-my-account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/shortcodes/class-wc-shortcode-my-account.php b/includes/shortcodes/class-wc-shortcode-my-account.php index f082682654f..bfd86f7fb74 100644 --- a/includes/shortcodes/class-wc-shortcode-my-account.php +++ b/includes/shortcodes/class-wc-shortcode-my-account.php @@ -244,7 +244,7 @@ class WC_Shortcode_My_Account { 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' ); return false; }