Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/10/2012 02:43:06 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Fix issue with activity and group admin bottom bulk actions not working. Fixes #4547.

File:
1 edited

Legend:

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

    r6606 r6609  
    5757
    5858    // Build redirection URL
    59     $redirect_to = remove_query_arg( array( 'action', 'gid', 'deleted', 'error', 'updated', 'success_new', 'error_new', 'success_modified', 'error_modified' ), $_SERVER['REQUEST_URI'] );
     59    $redirect_to = remove_query_arg( array( 'action', 'action2', 'gid', 'deleted', 'error', 'updated', 'success_new', 'error_new', 'success_modified', 'error_modified' ), $_SERVER['REQUEST_URI'] );
    6060
    6161    // Decide whether to load the dev version of the CSS and JavaScript
    6262    $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : 'min.';
     63
     64    // Bottom bulk action hack
     65    if ( !empty( $_REQUEST['action2'] ) ) {
     66        $_REQUEST['action'] = $_REQUEST['action2'];
     67        unset( $_REQUEST['action2'] );
     68    }
    6369
    6470    // Decide whether to load the index or edit screen
     
    544550    }
    545551
    546     $base_url  = remove_query_arg( array( 'action', 'action2', 'paged', 's', '_wpnonce', 'gid' ), $_SERVER['REQUEST_URI'] );
    547 
    548     ?>
     552    $base_url  = remove_query_arg( array( 'action', 'action2', 'paged', 's', '_wpnonce', 'gid' ), $_SERVER['REQUEST_URI'] ); ?>
    549553
    550554    <div class="wrap">
     
    10881092
    10891093        if ( empty( $row_class ) ) {
    1090             $row_class = ( $row_class == '' ) ? ' class="alternate"' : '';
     1094            $row_class = ' class="alternate"';
     1095        } else {
     1096            $row_class = '';
    10911097        }
    10921098
Note: See TracChangeset for help on using the changeset viewer.