WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/26/2016 02:36:06 PM (3 years ago)
Author:
johnbillion
Message:

Administration: Switch to handle_network_bulk_actions-{$screen} for the bulk listing screen actions in the network admin area.

Props ericlewis, Veraxus
See #16031

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/sites.php

    r38824 r38957  
    161161                    $redirect_to = wp_get_referer();
    162162                    $blogs = (array) $_POST['allblogs'];
    163                     /**
    164                      * Fires when a custom bulk action should be handled.
    165                      *
    166                      * The redirect link should be modified with success or failure feedback
    167                      * from the action to be used to display feedback to the user.
    168                      *
    169                      * @since 4.7.0
    170                      *
    171                      * @param string $redirect_to The redirect URL.
    172                      * @param string $doaction      The action being taken.
    173                      * @param array  $blogs       The blogs to take the action on.
    174                      * @param int    $site_id     The current site id.
    175                      */
    176                     $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id );
     163                    /** This action is documented in wp-admin/network/site-themes.php */
     164                    $redirect_to = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id );
    177165                    wp_safe_redirect( $redirect_to );
    178166                    exit();
Note: See TracChangeset for help on using the changeset viewer.