From 05423578d7006433aabc9d7c25f324fed09f033b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 1 May 2020 16:43:46 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@47734 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-terms-list-table.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/class-wp-terms-list-table.php b/src/wp-admin/includes/class-wp-terms-list-table.php index 2d9aca5932..4808793577 100644 --- a/src/wp-admin/includes/class-wp-terms-list-table.php +++ b/src/wp-admin/includes/class-wp-terms-list-table.php @@ -507,13 +507,14 @@ class WP_Terms_List_Table extends WP_List_Table { * Filters the action links displayed for each term in the Tags list table. * * @since 2.8.0 - * @deprecated 3.0.0 Use {@see '{$taxonomy}_row_actions'} instead. + * @since 3.0.0 Deprecated in favor of {@see '{$taxonomy}_row_actions'} filter. + * @since 5.4.2 Restored (un-deprecated). * * @param string[] $actions An array of action links to be displayed. Default * 'Edit', 'Quick Edit', 'Delete', and 'View'. * @param WP_Term $tag Term object. */ - $actions = apply_filters_deprecated( 'tag_row_actions', array( $actions, $tag ), '3.0.0', '{$taxonomy}_row_actions' ); + $actions = apply_filters( 'tag_row_actions', $actions, $tag ); /** * Filters the action links displayed for each term in the terms list table.