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/link-manager.php

    r45932 r46811  
    3333        $redirect_to = add_query_arg( 'deleted', count( $bulklinks ), $redirect_to );
    3434    } else {
    35         /** This action is documented in wp-admin/edit-comments.php */
    36         $redirect_to = apply_filters( 'handle_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $bulklinks ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     35        $screen = get_current_screen()->id;
     36
     37        /** This action is documented in wp-admin/edit.php */
     38        $redirect_to = apply_filters( "handle_bulk_actions-{$screen}", $redirect_to, $doaction, $bulklinks ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    3739    }
    3840    wp_redirect( $redirect_to );
Note: See TracChangeset for help on using the changeset viewer.