Skip to:
Content

BuddyPress.org

Changeset 4259


Ignore:
Timestamp:
04/23/2011 05:28:06 PM (15 years ago)
Author:
djpaul
Message:

No need to include registration.php; file was merged with user.php in WP 3.1.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-filters.php

    r4239 r4259  
    114114 */
    115115function bp_activity_at_name_filter( $content ) {
    116     if ( ! function_exists( 'username_exists' ) )
    117         require_once( ABSPATH . WPINC . '/registration.php' );
    118 
    119116    $usernames = bp_activity_find_mentions( $content );
    120117
  • trunk/bp-activity/bp-activity-functions.php

    r4118 r4259  
    4242
    4343    if ( $usernames = bp_activity_find_mentions( strip_tags( $activity->content ) ) ) {
    44         if ( ! function_exists( 'username_exists' ) )
    45             require_once( ABSPATH . WPINC . '/registration.php' );
    46 
    4744        foreach( (array)$usernames as $username ) {
    4845            if ( !$user_id = username_exists( $username ) )
  • trunk/bp-members/bp-members-signup.php

    r4166 r4259  
    296296    global $wpdb;
    297297
    298     if ( ! function_exists( 'validate_username' ) )
    299         require_once( ABSPATH . WPINC . '/registration.php' );
    300 
    301298    $errors = new WP_Error();
    302299    $user_email = sanitize_email( $user_email );
     
    376373    } else {
    377374        $errors = new WP_Error();
    378 
    379         if ( ! function_exists( 'wp_insert_user' ) )
    380             require_once( ABSPATH . WPINC . '/registration.php' );
    381375
    382376        $user_id = wp_insert_user( array(
     
    486480    }
    487481
    488     require_once( ABSPATH . WPINC . '/registration.php' );
    489 
    490482    // Update the display_name
    491483    wp_update_user( array( 'ID' => $user_id, 'display_name' => bp_core_get_user_displayname( $user_id ) ) );
  • trunk/bp-settings/bp-settings-actions.php

    r3917 r4259  
    1414        // Nonce check
    1515        check_admin_referer('bp_settings_general');
    16 
    17         if ( ! function_exists( 'email_exists' ) )
    18             require_once( ABSPATH . WPINC . '/registration.php' );
    1916
    2017        // Validate the user again for the current password when making a big change
Note: See TracChangeset for help on using the changeset viewer.