Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/10/2012 01:17:51 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Remove unneeded globals and clean up some code in Groups component. See #3989.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-actions.php

    r5620 r5689  
    11<?php
    2 /********************************************************************************
    3  * Action Functions
     2
     3/**
     4 * BuddyPress Groups Activity & Notification Functions
    45 *
    56 * Action functions are exactly the same as screen functions, however they do not
    67 * have a template screen associated with them. Usually they will send the user
    78 * back to the default screen after execution.
     9 *
     10 * @package BuddyPress
     11 * @subpackage GroupsActions
    812 */
    913
     
    288292
    289293function groups_action_redirect_to_random_group() {
    290     global $bp, $wpdb;
    291294
    292295    if ( bp_is_groups_component() && isset( $_GET['random-group'] ) ) {
     
    316319}
    317320add_action( 'bp_actions', 'groups_action_group_feed' );
     321
    318322?>
Note: See TracChangeset for help on using the changeset viewer.