+ if ( ! in_array( $doaction, array( 'delete', 'spam', 'notspam' ), true ) ) {
+ $redirect_to = wp_get_referer();
+ $blogs = (array) $_POST['allblogs'];
+ /** This action is documented in wp-admin/network/site-themes.php */
+ $redirect_to = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id );
+ wp_safe_redirect( $redirect_to );
+ exit();
+ }