Changeset 38647 for trunk/src/wp-admin/network/sites.php
- Timestamp:
- 09/23/2016 08:32:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/sites.php
r38305 r38647 161 161 } 162 162 } 163 if ( ! in_array( $doaction, array( 'delete', 'spam', 'notspam' ), true ) ) { 164 $redirect_to = wp_get_referer(); 165 $blogs = (array) $_POST['allblogs']; 166 /** 167 * Fires when a custom bulk action should be handled. 168 * 169 * The redirect link should be modified with success or failure feedback 170 * from the action to be used to display feedback to the user. 171 * 172 * @since 4.7.0 173 * 174 * @param string $redirect_to The redirect URL. 175 * @param string $doaction The action being taken. 176 * @param array $blogs The blogs to take the action on. 177 * @param int $site_id The current site id. 178 */ 179 $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id ); 180 wp_safe_redirect( $redirect_to ); 181 exit(); 182 } 163 183 } else { 164 184 $location = network_admin_url( 'sites.php' );
Note: See TracChangeset
for help on using the changeset viewer.