Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/13/2012 05:46:52 AM (12 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-screens.php

    r5705 r5758  
    191191        return false;
    192192
    193     if ( empty( $bp->current_action ) || !is_numeric( $bp->current_action ) )
     193    if ( ! bp_current_action() || !is_numeric( bp_current_action() ) )
    194194        return false;
    195195
     
    248248        is_user_logged_in() ?
    249249            bp_core_redirect( bp_loggedin_user_domain() ) :
    250             bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . esc_url( bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $bp->current_action . '/' ) ) );
     250            bp_core_redirect( site_url( 'wp-login.php?redirect_to=' . esc_url( bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . bp_current_action() . '/' ) ) );
    251251    }
    252252
     
    260260 * @since 1.2.0
    261261 *
    262  * @global object $bp BuddyPress global settings
    263262 * @uses bp_get_user_meta()
    264263 * @uses bp_core_get_username()
     
    266265 */
    267266function bp_activity_screen_notification_settings() {
    268     global $bp;
    269267
    270268    if ( !$mention = bp_get_user_meta( bp_displayed_user_id(), 'notification_activity_new_mention', true ) )
Note: See TracChangeset for help on using the changeset viewer.