Make WordPress Core

Ticket #16031: 16031.diff

File 16031.diff, 1.4 KB (added by ericlewis, 9 years ago)
  • src/wp-admin/edit.php

     
    164164                        break;
    165165        }
    166166
     167        /**
     168         * After built-in bulk actions have been handled.
     169         */
     170        do_action( 'handle_bulk_actions-' . get_current_screen()->id, $doaction );
     171
    167172        $sendback = remove_query_arg( array('action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view'), $sendback );
    168173
     174        /**
     175         * Filter the sendback link after a bulk action has been triggered.
     176         */
     177        $sendback = apply_filters( 'after_handle_bulk_actions_sendback_link-' . get_current_screen()->id, $sendback, $doaction );
     178
    169179        wp_redirect($sendback);
    170180        exit();
    171181} elseif ( ! empty($_REQUEST['_wp_http_referer']) ) {
  • src/wp-admin/includes/class-wp-list-table.php

     
    450450                         * @param array $actions An array of the available bulk actions.
    451451                         */
    452452                        $this->_actions = apply_filters( "bulk_actions-{$this->screen->id}", $this->_actions );
    453                         $this->_actions = array_intersect_assoc( $this->_actions, $no_new_actions );
    454453                        $two = '';
    455454                } else {
    456455                        $two = '2';