Make WordPress Core


Ignore:
Timestamp:
12/03/2019 01:56:25 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/users.php

    r45932 r46811  
    457457
    458458        if ( $wp_list_table->current_action() && ! empty( $_REQUEST['users'] ) ) {
     459            $screen   = get_current_screen()->id;
     460            $sendback = wp_get_referer();
    459461            $userids  = $_REQUEST['users'];
    460             $sendback = wp_get_referer();
    461 
    462             /** This action is documented in wp-admin/edit-comments.php */
    463             $sendback = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $sendback, $wp_list_table->current_action(), $userids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     462
     463            /** This action is documented in wp-admin/edit.php */
     464            $sendback = apply_filters( "handle_bulk_actions-{$screen}", $sendback, $wp_list_table->current_action(), $userids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    464465
    465466            wp_safe_redirect( $sendback );
Note: See TracChangeset for help on using the changeset viewer.