| 962 | | if ( locate_template( array( 'activate.php' ), false ) || locate_template( array( '/registration/activate.php' ), false ) ) |
| | 962 | global $wpdb; |
| | 963 | |
| | 964 | $activation_pages = array( 'activate.php', '/registration/activate.php' ); |
| | 965 | |
| | 966 | if ( bp_core_is_multisite() && $wpdb->blogid != BP_ROOT_BLOG ) { |
| | 967 | $original_blog = $wpdb->blogid; |
| | 968 | switch_to_blog( BP_ROOT_BLOG ); |
| | 969 | |
| | 970 | foreach ( $activation_pages as $page ) { |
| | 971 | if ( file_exists( get_stylesheet_directory() . '/' . $page ) ) |
| | 972 | return true; |
| | 973 | else if ( file_exists( get_template_directory() . '/' . $page ) ) |
| | 974 | return true; |
| | 975 | } |
| | 976 | |
| | 977 | switch_to_blog( $original_blog ); |
| | 978 | } |
| | 979 | |
| | 980 | if ( locate_template( $activation_pages, false ) ) |