Skip to:
Content

BuddyPress.org

Changeset 3666 for trunk/bp-activity.php


Ignore:
Timestamp:
01/06/2011 03:17:09 PM (15 years ago)
Author:
boonebgorges
Message:

Refactors registration.php requires so they don't require an additional function. Fixes #2997. Props nacin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r3661 r3666  
    547547
    548548    if ( $usernames = bp_activity_find_mentions( strip_tags( $activity->content ) ) ) {
    549         bp_core_maybe_include_user_registration_file();
     549        if ( ! function_exists( 'username_exists' ) )
     550            require_once( ABSPATH . WPINC . '/registration.php' );
    550551
    551552        foreach( (array)$usernames as $username ) {
Note: See TracChangeset for help on using the changeset viewer.