Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/01/2011 07:53:50 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Use bp_current_item() in place of $bp->current_item global

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-template.php

    r3982 r3983  
    550550            $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->groups->root_slug . '/' . $forum_template->topic->object_slug );
    551551        else if ( !empty( $bp->is_single_item ) )
    552             $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->current_component . '/' . $bp->current_item );
     552            $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->current_component . '/' . bp_current_item() );
    553553        else
    554554            $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->current_component . '/' . $bp->current_action );
     
    11011101
    11021102        if ( $bp->is_single_item )
    1103             $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->current_component . '/' . $bp->current_item );
     1103            $permalink = trailingslashit( bp_get_root_domain() . '/' . $bp->current_component . '/' . bp_current_item() );
    11041104        else
    11051105            $permalink = trailingslashit( bp_get_root_domain() . $bp->current_component . '/' . $bp->current_action );
Note: See TracChangeset for help on using the changeset viewer.