Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/03/2013 08:45:16 PM (12 years ago)
Author:
boonebgorges
Message:

Introduces bp_admin_list_table_current_bulk_action() and applies to group and activity admin pages

WP_List_Table pages have top and bottom bulk action dropdowns: 'action' and
'action2'. This changeset reconciles these two dropdowns on form submit.

See #4861

Hat tip to imath for original patch

File:
1 edited

Legend:

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

    r6830 r6832  
    7676    $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : 'min.';
    7777
    78     // Bottom bulk action hack
    79     if ( !empty( $_REQUEST['action2'] ) ) {
    80         $_REQUEST['action'] = $_REQUEST['action2'];
    81         unset( $_REQUEST['action2'] );
    82     }
    83 
    84     // Decide whether to load the index or edit screen
    85     $doaction = ! empty( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';
     78    $doaction = bp_admin_list_table_current_bulk_action();
    8679
    8780    // Call an action for plugins to hook in early
Note: See TracChangeset for help on using the changeset viewer.