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/upload.php

    r45932 r46811  
    199199            break;
    200200        default:
    201             /** This action is documented in wp-admin/edit-comments.php */
    202             $location = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $location, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     201            $screen = get_current_screen()->id;
     202
     203            /** This action is documented in wp-admin/edit.php */
     204            $location = apply_filters( "handle_bulk_actions-{$screen}", $location, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    203205    }
    204206
Note: See TracChangeset for help on using the changeset viewer.