Changeset 5705 for trunk/bp-activity/bp-activity-template.php
- Timestamp:
- 02/11/2012 03:21:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-template.php
r5684 r5705 142 142 } 143 143 144 $this->full_name = $bp->displayed_user->fullname;144 $this->full_name = bp_get_displayed_user_fullname(); 145 145 146 146 // Fetch parent content for activity comments so we do not have to query in the loop … … 324 324 // determine which user_id applies 325 325 if ( empty( $user_id ) ) 326 $user_id = ( bp_displayed_user_id()) ? bp_displayed_user_id() : bp_loggedin_user_id();326 $user_id = bp_displayed_user_id() ? bp_displayed_user_id() : bp_loggedin_user_id(); 327 327 328 328 // are we displaying user specific activity? … … 360 360 break; 361 361 case 'mentions': 362 $user_nicename = ( bp_displayed_user_id() ) ? $bp->displayed_user->userdata->user_nicename : $bp->loggedin_user->userdata->user_nicename; 363 $user_login = ( bp_displayed_user_id() ) ? $bp->displayed_user->userdata->user_login : $bp->loggedin_user->userdata->user_login;364 $search_terms = '@' . bp_core_get_username( $user_id , $user_nicename, $user_login ) . '<'; // Start search at @ symbol and stop search at closing tag delimiter.362 363 // Start search at @ symbol and stop search at closing tag delimiter. 364 $search_terms = '@' . bp_core_get_username( $user_id ) . '<'; 365 365 $display_comments = 'stream'; 366 366 $user_id = 0; … … 371 371 372 372 // Do not exceed the maximum per page 373 if ( !empty( $max ) && ( (int) $per_page > (int)$max ) )373 if ( !empty( $max ) && ( (int) $per_page > (int) $max ) ) 374 374 $per_page = $max; 375 375 … … 385 385 386 386 // If specific activity items have been requested, override the $hide_spam argument. This prevents backpat errors with AJAX. 387 if ( !empty( $include ) && 'ham_only' == $spam)387 if ( !empty( $include ) && ( 'ham_only' == $spam ) ) 388 388 $spam = 'all'; 389 389 … … 2290 2290 return false; 2291 2291 2292 return apply_filters( 'bp_get_send_public_message_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_activity_slug() . '/?r=' . bp_core_get_username( bp_displayed_user_id(), $bp->displayed_user->userdata->user_nicename, $bp->displayed_user->userdata->user_login ) ) );2292 return apply_filters( 'bp_get_send_public_message_link', wp_nonce_url( bp_loggedin_user_domain() . bp_get_activity_slug() . '/?r=' . bp_core_get_username( bp_displayed_user_id(), bp_get_displayed_user_username(), $bp->displayed_user->userdata->user_login ) ) ); 2293 2293 } 2294 2294
Note: See TracChangeset
for help on using the changeset viewer.