Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/02/2009 10:07:58 PM (15 years ago)
Author:
apeatling
Message:

Fixing registration and avatar bugs with old 1.0 themes in 1.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-activation.php

    r1970 r2025  
    55   
    66    if ( BP_ACTIVATION_SLUG != $bp->current_component )
     7        return false;
     8       
     9    /* If we are using a BuddyPress 1.0 theme ignore this. */
     10    if ( file_exists( WP_CONTENT_DIR . '/bp-themes' ) )
    711        return false;
    812       
     
    6872    }
    6973   
    70     bp_core_load_template( 'registration/activate' );
     74    if ( '' != locate_template( array( 'registration/activate' ), false ) )
     75        bp_core_load_template( apply_filters( 'bp_core_template_activate', 'activate' ) );     
     76    else
     77        bp_core_load_template( apply_filters( 'bp_core_template_activate', 'registration/activate' ) );     
    7178}
    7279add_action( 'wp', 'bp_core_screen_activation', 3 );
Note: See TracChangeset for help on using the changeset viewer.