Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/13/2012 05:46:52 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Clean up $bp->current_component, $bp->current_action, and $bp->current_item usage. Fixes #3738.

File:
1 edited

Legend:

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

    r5729 r5758  
    277277
    278278    // The default scope should recognize custom slugs
    279     if ( array_key_exists( $bp->current_action, (array) $bp->loaded_components ) ) {
    280         $scope = $bp->loaded_components[$bp->current_action];
     279    if ( array_key_exists( bp_current_action(), (array) $bp->loaded_components ) ) {
     280        $scope = $bp->loaded_components[bp_current_action()];
    281281    }
    282282    else
     
    18121812     * @since 1.2.0
    18131813     *
    1814      * @global object $bp BuddyPress global settings
    18151814     * @uses apply_filters() To call the 'bp_get_activity_permalink_id' hook
    18161815     *
     
    18181817     */
    18191818    function bp_get_activity_permalink_id() {
    1820         global $bp;
    1821 
    1822         return apply_filters( 'bp_get_activity_permalink_id', $bp->current_action );
     1819        return apply_filters( 'bp_get_activity_permalink_id', bp_current_action() );
    18231820    }
    18241821
Note: See TracChangeset for help on using the changeset viewer.