• Resolved max

    (@maximledoux)


    PHP Notice: Undefined property: stdClass::$id in /wp-content/plugins/user-switching/user-switching.php on line 620

    I think:
    $user = get_userdata( $bp->displayed_user->id );

    should be:
    $user = get_userdata( bp_displayed_user_id() );

    I’ve made this change on my end and the notice goes away and functionality remains. Of course, it won’t survive the next plugin update unless plugin author makes change…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the report. Are you using the latest version of User Switching? (1.3.0). This bug has already been fixed in that version.

    Thread Starter max

    (@maximledoux)

    Well, now I feel like a dummy. I was on 1.2! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Undefined property: stdClass::$id’ is closed to new replies.