mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 13:37:51 +01:00
Administration: Standardise the docblocks for the handle_bulk_actions-*
filters.
Props ericlewis, Veraxus Fixes #16031 Built from https://develop.svn.wordpress.org/trunk@38958 git-svn-id: http://core.svn.wordpress.org/trunk@38901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d2173fd5b0
commit
bc5c87710e
@ -91,9 +91,9 @@ if ( $doaction ) {
|
||||
*
|
||||
* @since 4.7.0
|
||||
*
|
||||
* @param string $redirect_to The redirect URL.
|
||||
* @param string $doaction The action being taken.
|
||||
* @param array $comment_ids The comments to take the action on.
|
||||
* @param string $redirect_url The redirect URL.
|
||||
* @param string $doaction The action being taken.
|
||||
* @param array $items The items to take the action on.
|
||||
*/
|
||||
$redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $comment_ids );
|
||||
}
|
||||
|
@ -174,18 +174,7 @@ default:
|
||||
}
|
||||
check_admin_referer( 'bulk-tags' );
|
||||
$tags = (array) $_REQUEST['delete_tags'];
|
||||
/**
|
||||
* 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 $location The redirect URL.
|
||||
* @param string $action The action being taken.
|
||||
* @param array $tags The tag IDs to take the action on.
|
||||
*/
|
||||
/** This action is documented in wp-admin/edit-comments.php */
|
||||
$location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags );
|
||||
break;
|
||||
}
|
||||
|
@ -163,18 +163,7 @@ if ( $doaction ) {
|
||||
}
|
||||
break;
|
||||
default:
|
||||
/**
|
||||
* 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 $doaction The action being taken.
|
||||
* @param array $post_ids The post IDs 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, $doaction, $post_ids );
|
||||
break;
|
||||
}
|
||||
|
@ -31,18 +31,7 @@ if ( $doaction && isset( $_REQUEST['linkcheck'] ) ) {
|
||||
|
||||
$redirect_to = add_query_arg( 'deleted', count( $bulklinks ), $redirect_to );
|
||||
} else {
|
||||
/**
|
||||
* Fires when a custom bulk action should be handled.
|
||||
*
|
||||
* The redirect 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 $redirect_to The redirect URL.
|
||||
* @param string $doaction The action being taken.
|
||||
* @param array $bulklinks The links to take the action on.
|
||||
*/
|
||||
/** This action is documented in wp-admin/edit-comments.php */
|
||||
$redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $bulklinks );
|
||||
}
|
||||
wp_redirect( $redirect_to );
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -164,18 +164,7 @@ if ( $doaction ) {
|
||||
$location = add_query_arg( 'deleted', count( $post_ids ), $location );
|
||||
break;
|
||||
default:
|
||||
/**
|
||||
* Fires when a custom bulk action should be handled.
|
||||
*
|
||||
* The redirect 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 $location The redirect URL.
|
||||
* @param string $doaction The action being taken.
|
||||
* @param array $post_ids The posts to take the action on.
|
||||
*/
|
||||
/** This action is documented in wp-admin/edit-comments.php */
|
||||
$location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids );
|
||||
}
|
||||
|
||||
|
@ -414,18 +414,7 @@ default:
|
||||
$userids = $_REQUEST['users'];
|
||||
$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 $userids The users 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, $wp_list_table->current_action(), $userids );
|
||||
|
||||
wp_safe_redirect( $sendback );
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38957';
|
||||
$wp_version = '4.7-alpha-38958';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user