WordPress.org

Make WordPress Core

Changeset 47734


Ignore:
Timestamp:
05/01/2020 04:43:46 PM (7 months ago)
Author:
SergeyBiryukov
Message:

Taxonomy: Restore (un-deprecate) the tag_row_actions filter.

The filter provides a simple way for plugin authors to add actions generically for all taxonomy list tables without looping through each taxonomy individually.

Props joemcgill, delowardev.
Fixes #49808.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r47557 r47734  
    508508         *
    509509         * @since 2.8.0
    510          * @deprecated 3.0.0 Use {@see '{$taxonomy}_row_actions'} instead.
     510         * @since 3.0.0 Deprecated in favor of {@see '{$taxonomy}_row_actions'} filter.
     511         * @since 5.4.2 Restored (un-deprecated).
    511512         *
    512513         * @param string[] $actions An array of action links to be displayed. Default
     
    514515         * @param WP_Term  $tag     Term object.
    515516         */
    516         $actions = apply_filters_deprecated( 'tag_row_actions', array( $actions, $tag ), '3.0.0', '{$taxonomy}_row_actions' );
     517        $actions = apply_filters( 'tag_row_actions', $actions, $tag );
    517518
    518519        /**
Note: See TracChangeset for help on using the changeset viewer.