Changeset 5366 for trunk/bp-members/bp-members-template.php
- Timestamp:
- 11/24/2011 04:37:47 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-members/bp-members-template.php
r5302 r5366 978 978 } 979 979 980 function bp_has_custom_activation_page() {981 if ( locate_template( array( 'activate.php' ), false ) || locate_template( array( '/registration/activate.php' ), false ) )982 return true;983 984 return false;985 }986 987 980 function bp_activation_page() { 988 981 echo bp_get_activation_page(); … … 991 984 global $bp; 992 985 993 if ( bp_has_custom_activation_page() ) 986 // Check the global directly to make sure the WP page exists in $bp->pages 987 if ( !empty( $bp->pages->activate->slug ) ) 994 988 $page = trailingslashit( bp_get_root_domain() . '/' . $bp->pages->activate->slug ); 995 989 else
Note: See TracChangeset
for help on using the changeset viewer.