WordPress.org

Make WordPress Core

Ticket #49572: 49572-bulk-actions-screen-id.diff

File 49572-bulk-actions-screen-id.diff, 1.0 KB (added by pbiron, 18 months ago)

Correct DocBlock of bulk-actions-{$this->screen->id} filter

  • src/wp-admin/includes/class-wp-list-table.php

    From a68a5e55b07703107f8288fdf89929d1d750fbbc Mon Sep 17 00:00:00 2001
    From: Paul Biron <paul@sparrowhawkcomputing.com>
    Date: Mon, 15 Jun 2020 15:44:42 -0600
    Subject: [PATCH] Remove the part of the description that says the filter can
     only used to remove bulk actions.
    
    props @joyously
    https://wordpress.slack.com/archives/C02RP4WU5/p1592256736420400
    ---
     src/wp-admin/includes/class-wp-list-table.php | 2 --
     1 file changed, 2 deletions(-)
    
    diff --git a/src/wp-admin/includes/class-wp-list-table.php b/src/wp-admin/includes/class-wp-list-table.php
    index 11cde8edcb..9d8c54ab7b 100644
    a b class WP_List_Table { 
    445445                         * The dynamic portion of the hook name, `$this->screen->id`, refers
    446446                         * to the ID of the current screen, usually a string.
    447447                         *
    448                          * This filter can currently only be used to remove bulk actions.
    449                          *
    450448                         * @since 3.5.0
    451449                         *
    452450                         * @param string[] $actions An array of the available bulk actions.