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/edit-tags.php

    r46685 r46811  
    200200        }
    201201        check_admin_referer( 'bulk-tags' );
    202         $tags = (array) $_REQUEST['delete_tags'];
    203         /** This action is documented in wp-admin/edit-comments.php */
    204         $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $wp_list_table->current_action(), $tags );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     202
     203        $screen = get_current_screen()->id;
     204        $tags   = (array) $_REQUEST['delete_tags'];
     205
     206        /** This action is documented in wp-admin/edit.php */
     207        $location = apply_filters( "handle_bulk_actions-{$screen}", $location, $wp_list_table->current_action(), $tags );  // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    205208        break;
    206209}
Note: See TracChangeset for help on using the changeset viewer.