Ticket #6662: Invalid activation key.patch
File Invalid activation key.patch, 721 bytes (added by , 9 years ago) |
---|
-
src/bp-members/bp-members-functions.php
1975 1975 } elseif ( $key == wp_hash( $user_id ) ) { 1976 1976 // Change the user's status so they become active 1977 1977 if ( ! $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_status = 0 WHERE ID = %d", $user_id ) ) ) { 1978 return new WP_Error( 'invalid_key', __( 'Invalid activation key ', 'buddypress' ) );1978 return new WP_Error( 'invalid_key', __( 'Invalid activation key.', 'buddypress' ) ); 1979 1979 } 1980 1980 1981 1981 bp_delete_user_meta( $user_id, 'activation_key' );