Changeset 2666 for trunk/bp-activity/bp-activity-templatetags.php
- Timestamp:
- 02/11/2010 12:50:00 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity/bp-activity-templatetags.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r2616 r2666 191 191 $display_comments = 'stream'; 192 192 193 $show_hidden = ( $user_id == $bp->loggedin_user->id ) ? 1 : 0; 194 193 195 if ( $user_id = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->id : $bp->loggedin_user->id ) { 194 196 switch ( $scope ) { … … 209 211 $object = $bp->groups->id; 210 212 $primary_id = implode( ',', (array)$groups['groups'] ); 211 $show_hidden = ( $user_id == $bp->loggedin_user->id ) ? 1 : 0; 213 212 214 $user_id = false; 213 215 } … … 219 221 220 222 $include = implode( ',', (array)$favs ); 221 $show_hidden = ( $user_id == $bp->loggedin_user->id ) ? 1 : 0;222 223 break; 223 224 case 'mentions': … … 225 226 $user_login = ( !empty( $bp->displayed_user->id ) ) ? $bp->displayed_user->userdata->user_login : $bp->loggedin_user->userdata->user_login; 226 227 $search_terms = '@' . bp_core_get_username( $user_id, $user_nicename, $user_login ); 227 $show_hidden = ( $user_id == $bp->loggedin_user->id ) ? 1 : 0;228 228 $display_comments = 'stream'; 229 229 $user_id = false; … … 570 570 if ( !$comment->user_fullname ) 571 571 $comment->user_fullname = $comment->display_name; 572 573 var_dump($comment->content); 572 574 573 575 $content .= '<li id="acomment-' . $comment->id . '">';
Note:
See TracChangeset
for help on using the changeset viewer.