Deprecated access to $current_user->id

Lines 210 and 211 in includes/bp-group-email.php reference $current_user->id which is deprecated. The change is to access the property via $current_user->ID

  • Ken Kimbrell

    Hello glynndevins-

    Thanks for bringing this to our attention. Is there a problem with the functionality of our plugin outside of a deprecated call error being displayed when you set your define('WP_DEBUG', true)?

    Basically $current_user is a global variable that is set:

    $current_user = get_current_user_id();

    then it is returned as get_user_meta($current_user->id); and points to the ID of the current user.

    While the id is not capitalized and it is labeling as a deprecated error, this should not effect functionality of the plugin. We will look into updating the plugin, and we appreciate you bringing this to out attention.

    Let me know how we can help :slight_smile:

    Take Care,

    Ken - WPMU DEV Support

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.