Skip to:
Content

BuddyPress.org

Changeset 3661 for trunk/bp-core.php


Ignore:
Timestamp:
01/05/2011 10:27:07 PM (14 years ago)
Author:
djpaul
Message:

Don't include wp-includes/registration.php if on WordPress 3.1. Fixes #2997

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r3643 r3661  
    283283
    284284    return apply_filters( 'bp_core_get_page_names', $pages );
     285}
     286
     287/**
     288 * If we're not on WordPress 3.1+, then include the file containing the user registration methods.
     289 *
     290 * @global float $wp_version WordPress version number
     291 * @since 1.3
     292 */
     293function bp_core_maybe_include_user_registration_file() {
     294    global $wp_version;
     295
     296    if ( $wp_version >= 3.1 )
     297        return;
     298
     299    require_once( ABSPATH . WPINC . '/registration.php' );
    285300}
    286301
Note: See TracChangeset for help on using the changeset viewer.