Administration: Standardise the docblocks for the handle_bulk_actions-* filters.

Props ericlewis, Veraxus
Fixes #16031


git-svn-id: https://develop.svn.wordpress.org/trunk@38958 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2016-10-26 14:44:57 +00:00
parent df8b6cf282
commit 573912fcfd
7 changed files with 9 additions and 76 deletions

View File

@@ -363,20 +363,8 @@ if ( $action ) {
$plugins = isset( $_POST['checked'] ) ? (array) $_POST['checked'] : array();
$sendback = wp_get_referer();
/**
* Fires when a custom bulk action should be handled.
*
* The sendback link should be modified with success or failure feedback
* from the action to be used to display feedback to the user.
*
* @since 4.7.0
*
* @param string $sendback The redirect URL.
* @param string $action The action being taken.
* @param array $plugins The plugins to take the action on.
*/
/** This action is documented in wp-admin/edit-comments.php */
$sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $action, $plugins );
wp_safe_redirect( $sendback );
exit;
}