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-activity/bp-activity-admin.php

    r6676 r6832  
    183183    $min = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : 'min.';
    184184
    185     // Bottom bulk action hack
    186     if ( !empty( $_REQUEST['action2'] ) ) {
    187         $_REQUEST['action'] = $_REQUEST['action2'];
    188         unset( $_REQUEST['action2'] );
    189     }
    190 
    191     // Decide whether to load the index or edit screen
    192     $doaction = ! empty( $_REQUEST['action'] ) ? $_REQUEST['action'] : '';
     185    $doaction = bp_admin_list_table_current_bulk_action();
    193186
    194187    // Call an action for plugins to hook in early
Note: See TracChangeset for help on using the changeset viewer.