Make WordPress Core

Changeset 38957

Timestamp:
10/26/2016 02:36:06 PM (8 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

Location:
trunk/src/wp-admin/network
Files:
5 edited

Legend:

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

    r38824 r38957  
    133133                 * @since 4.7.0
    134134                 *
    135                  * @param string $referer The redirect URL.
    136                  * @param string $action  The action being taken.
    137                  * @param array  $themes  The themes to take the action on.
    138                  * @param int    $site_id The current site id
     135                 * @param string $re The redirect URL.
     136                 * @param string $action  The action being taken.
     137                 * @param array  $s to take the action on.
     138                 * @param int    $site_id
    139139                 */
    140                 $referer = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes, $id );
     140                $referer = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes, $id );
    141141            } else {
    142142                $action = 'error';
  • trunk/src/wp-admin/network/site-users.php

    r38824 r38957  
    171171            check_admin_referer( 'bulk-users' );
    172172            $userids = $_REQUEST['users'];
    173             /**
    174              * Fires when a custom bulk action should be handled.
    175              *
    176              * The redirect link should be modified with success or failure feedback
    177              * from the action to be used to display feedback to the user.
    178              *
    179              * @since 4.7.0
    180              *
    181              * @param string $referer The redirect URL.
    182              * @param string $action  The action being taken.
    183              * @param array  $userids The users to take the action on.
    184              * @param int    $id      The id of the current site
    185              */
    186             $referer = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id );
     173            /** This action is documented in wp-admin/network/site-themes.php */
     174            $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $userids, $id );
    187175            $update = $action;
    188176            break;
  • 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();
  • trunk/src/wp-admin/network/themes.php

    r38721 r38957  
    201201            check_admin_referer( 'bulk-themes' );
    202202
    203             /**
    204              * Fires when a custom bulk action should be handled.
    205              *
    206              * The redirect link should be modified with success or failure feedback
    207              * from the action to be used to display feedback to the user.
    208              *
    209              * @since 4.7.0
    210              *
    211              * @param string $referer   The redirect URL.
    212              * @param string $action    The action being taken.
    213              * @param array  $themes    The themes to take the action on.
    214              */
    215             $referer = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes );
     203            /** This action is documented in wp-admin/network/site-themes.php */
     204            $referer = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $referer, $action, $themes );
    216205
    217206            wp_safe_redirect( $referer );
  • trunk/src/wp-admin/network/users.php

    r38814 r38957  
    9595
    9696                    $user_ids = (array) $_POST['allusers'];
    97                     /**
    98                      * Fires when a custom bulk action should be handled.
    99                      *
    100                      * The sendback link should be modified with success or failure feedback
    101                      * from the action to be used to display feedback to the user.
    102                      *
    103                      * @since 4.7.0
    104                      *
    105                      * @param string $sendback The redirect URL.
    106                      * @param string $doaction The action being taken.
    107                      * @param array  $user_ids The users to take the action on.
    108                      */
    109                     $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $user_ids );
     97                    /** This action is documented in wp-admin/network/site-themes.php */
     98                    $sendback = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $sendback, $doaction, $user_ids );
    11099
    111100                    wp_safe_redirect( $sendback );
Note: See TracChangeset for help on using the changeset viewer.