mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Docs: Move the canonical DocBlock for handle_bulk_actions-{$screen} action to wp-admin/edit.php.
* Document accepted values for the `$items` parameter. * Use interpolated syntax for the filter name. Props dilipbheda, johnbillion, SergeyBiryukov. Fixes #48857. git-svn-id: https://develop.svn.wordpress.org/trunk@46811 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -198,8 +198,10 @@ if ( $doaction ) {
|
||||
$location = add_query_arg( 'deleted', count( $post_ids ), $location );
|
||||
break;
|
||||
default:
|
||||
/** This action is documented in wp-admin/edit-comments.php */
|
||||
$location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
$screen = get_current_screen()->id;
|
||||
|
||||
/** This action is documented in wp-admin/edit.php */
|
||||
$location = apply_filters( "handle_bulk_actions-{$screen}", $location, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||
}
|
||||
|
||||
wp_redirect( $location );
|
||||
|
||||
Reference in New Issue
Block a user