[buddypress-trac] [BuddyPress Trac] #5585: Activating user by other means than email or admin doesn't remove them from pending list

buddypress-trac noreply at wordpress.org
Sat May 3 03:27:32 UTC 2014


#5585: Activating user by other means than email or admin doesn't remove them from
pending list
-------------------------------+------------------------------
 Reporter:  modemlooper        |       Owner:
     Type:  defect (bug)       |      Status:  reopened
 Priority:  low                |   Milestone:  Awaiting Review
Component:  Core               |     Version:  2.0
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |
-------------------------------+------------------------------

Comment (by modemlooper):

 ok stupid me, my sql statement had $wpdb->signups and that won't work.

 This worked

 {{{
 function remove_from_pending( $user_id ) {
         global $wpdb;

         $key = get_user_meta( $user_id, 'activation_key' );
         $wpdb->query( $wpdb->prepare( "UPDATE wp_signups SET active = 1
 WHERE activation_key = %s", $key ) );
 }
 add_action( 'bp_core_signup_user', 'remove_from_pending');
 }}}

 using this in the function doesn't activate the user


 {{{
 bp_core_activate_signup( $key )
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5585#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list