Changeset 5758 for trunk/bp-activity/bp-activity-screens.php
- Timestamp:
- 02/13/2012 05:46:52 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-screens.php
r5705 r5758 191 191 return false; 192 192 193 if ( empty( $bp->current_action ) || !is_numeric( $bp->current_action) )193 if ( ! bp_current_action() || !is_numeric( bp_current_action() ) ) 194 194 return false; 195 195 … … 248 248 is_user_logged_in() ? 249 249 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() . '/' ) ) ); 251 251 } 252 252 … … 260 260 * @since 1.2.0 261 261 * 262 * @global object $bp BuddyPress global settings263 262 * @uses bp_get_user_meta() 264 263 * @uses bp_core_get_username() … … 266 265 */ 267 266 function bp_activity_screen_notification_settings() { 268 global $bp;269 267 270 268 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.