From 48fec8238a35d7aeda55dbfb36d8576cf0b93a92 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 6 May 2020 13:26:09 +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. Merges [47734] to the 5.4 branch. Fixes #49808. Built from https://develop.svn.wordpress.org/branches/5.4@47767 git-svn-id: http://core.svn.wordpress.org/branches/5.4@47543 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-terms-list-table.php | 5 +++-- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-terms-list-table.php b/wp-admin/includes/class-wp-terms-list-table.php index 9af2f0e502..651c4d1c44 100644 --- a/wp-admin/includes/class-wp-terms-list-table.php +++ b/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. diff --git a/wp-includes/version.php b/wp-includes/version.php index efeb82cc6e..52f838e907 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4.2-alpha-47731'; +$wp_version = '5.4.2-alpha-47767'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.