Changeset 5705 for trunk/bp-core/bp-core-filters.php
- Timestamp:
- 02/11/2012 03:21:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-filters.php
r5683 r5705 1 1 <?php 2 2 3 // Exit if accessed directly 3 4 if ( !defined( 'ABSPATH' ) ) exit; … … 55 56 */ 56 57 function bp_core_allow_default_theme( $themes ) { 57 global $ bp, $wpdb;58 global $wpdb; 58 59 59 60 if ( !bp_current_user_can( 'bp_moderate' ) ) … … 141 142 */ 142 143 function bp_core_filter_user_welcome_email( $welcome_email ) { 143 /* Don't touch the email if we don't have a custom registration template */ 144 145 // Don't touch the email if we don't have a custom registration template 144 146 if ( '' == locate_template( array( 'registration/register.php' ), false ) && '' == locate_template( array( 'register.php' ), false ) ) 145 147 return $welcome_email; … … 165 167 */ 166 168 function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) { 167 /* Don't touch the email if we don't have a custom registration template */ 169 170 // Don't touch the email if we don't have a custom registration template 168 171 if ( '' == locate_template( array( 'registration/register.php' ), false ) && '' == locate_template( array( 'register.php' ), false ) ) 169 172 return $welcome_email; … … 265 268 266 269 // Displayed user 267 if ( !empty( $bp->displayed_user->fullname) && !is_404() ) {270 if ( bp_get_displayed_user_fullname() && !is_404() ) { 268 271 269 272 // Get the component's ID to try and get it's name
Note: See TracChangeset
for help on using the changeset viewer.