• Resolved lackingpenguin

    (@lackingpenguin)


    When using the newest version of Events Manager (5.0rc1) with the newest version of Buddypress (1.5.2), you may notice that if you delete a user who has posted no events, ALL upcoming events are deleted too!

    This is because the delete() method of the EM_Events (classes/em-events.php) class will delete all upcoming events if passed an empty array as an argument. This is obviously not the desired behavior.

    To fix, simply replace line 141 of classes/em-events.php:

    if( @get_class(current($array)) != 'EM_Event' ){

    with:

    if( !empty($array) && @get_class(current($array)) != 'EM_Event' ){

    All the best,
    Ben

    http://wordpress.org/extend/plugins/events-manager/

Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: Events Manager] Serious Buddypress user deletion bug’ is closed to new replies.