Changeset 1025 for trunk/bp-wire/bp-wire-templatetags.php
- Timestamp:
- 02/06/2009 10:44:01 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-wire/bp-wire-templatetags.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-wire/bp-wire-templatetags.php
r1024 r1025 26 26 // Seeing as we're viewing a users wire, lets remove any new wire 27 27 // post notifications 28 if ( $bp->current_action == 'all-posts')28 if ( 'all-posts' == $bp->current_action ) 29 29 bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'xprofile', 'new_wire_post' ); 30 30 … … 99 99 $this->wire_post = $this->next_wire_post(); 100 100 101 if ( $this->current_wire_post == 0) // loop has just started101 if ( 0 == $this->current_wire_post ) // loop has just started 102 102 do_action('loop_start'); 103 103 } … … 262 262 $uri = $bp->current_item; 263 263 264 if ( $bp->current_component == 'wire' || $bp->current_component == 'profile') {264 if ( $bp->current_component == $bp->wire->slug || $bp->current_component == $bp->profile->slug ) { 265 265 echo apply_filters( 'bp_wire_get_action', $bp->displayed_user->domain . $bp->wire->slug . '/post/' ); 266 266 } else { … … 303 303 304 304 if ( ( $wire_posts_template->wire_post->user_id == $bp->loggedin_user->id ) || $bp->is_item_admin ) { 305 if ( $bp-> current_component == 'wire' || $bp->current_component == 'profile') {305 if ( $bp->wire->slug == $bp->current_component || $bp->profile->slug == $bp->current_component ) { 306 306 echo apply_filters( 'bp_wire_delete_link', '<a href="' . $bp->displayed_user->domain . $bp->wire->slug . '/delete/' . $wire_posts_template->wire_post->id . '">[' . __('Delete', 'buddypress') . ']</a>' ); 307 307 } else { … … 319 319 $uri = $bp->current_item; 320 320 321 if ( $bp->current_component == 'wire' || $bp->current_component == 'profile') {321 if ( $bp->current_component == $bp->wire->slug || $bp->current_component == $bp->profile->slug ) { 322 322 echo apply_filters( 'bp_wire_see_all_link', $bp->displayed_user->domain . $bp->wire->slug ); 323 323 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)