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-comments.php

    r45932 r46811  
    9393        $screen = get_current_screen()->id;
    9494
    95         /**
    96          * Fires when a custom bulk action should be handled.
    97          *
    98          * The redirect link should be modified with success or failure feedback
    99          * from the action to be used to display feedback to the user.
    100          *
    101          * The dynamic portion of the hook name, `$screen`, refers to the current screen ID.
    102          *
    103          * @since 4.7.0
    104          *
    105          * @param string $redirect_url The redirect URL.
    106          * @param string $doaction     The action being taken.
    107          * @param array  $items        The items to take the action on.
    108          */
     95        /** This action is documented in wp-admin/edit.php */
    10996        $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $comment_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    11097    }
Note: See TracChangeset for help on using the changeset viewer.