Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/06/2009 10:44:01 PM (17 years ago)
Author:
apeatling
Message:

Syntax cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-wire/bp-wire-templatetags.php

    r1024 r1025  
    2626                        // Seeing as we're viewing a users wire, lets remove any new wire
    2727                        // post notifications
    28                         if ( $bp->current_action == 'all-posts' )
     28                        if ( 'all-posts' == $bp->current_action )
    2929                                bp_core_delete_notifications_for_user_by_type( $bp->loggedin_user->id, 'xprofile', 'new_wire_post' );
    3030                       
     
    9999                $this->wire_post = $this->next_wire_post();
    100100
    101                 if ( $this->current_wire_post == 0 ) // loop has just started
     101                if ( 0 == $this->current_wire_post ) // loop has just started
    102102                        do_action('loop_start');
    103103        }
     
    262262                $uri = $bp->current_item;
    263263       
    264         if ( $bp->current_component == 'wire' || $bp->current_component == 'profile' ) {
     264        if ( $bp->current_component == $bp->wire->slug || $bp->current_component == $bp->profile->slug ) {
    265265                echo apply_filters( 'bp_wire_get_action', $bp->displayed_user->domain . $bp->wire->slug . '/post/' );
    266266        } else {
     
    303303               
    304304        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 ) {
    306306                        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>' );
    307307                } else {
     
    319319                $uri = $bp->current_item;
    320320       
    321         if ( $bp->current_component == 'wire' || $bp->current_component == 'profile') {
     321        if ( $bp->current_component == $bp->wire->slug || $bp->current_component == $bp->profile->slug ) {
    322322                echo apply_filters( 'bp_wire_see_all_link', $bp->displayed_user->domain . $bp->wire->slug );
    323323        } else {
Note: See TracChangeset for help on using the changeset viewer.