mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 22:27:04 +00:00
Coding Standards: Consistently use do_action_deprecated() and apply_filters_deprecated() for deprecated hooks.
Props jrf. See #48255. git-svn-id: https://develop.svn.wordpress.org/trunk@46684 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -97,7 +97,7 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||
*
|
||||
* @param int $tags_per_page Number of tags to be displayed. Default 20.
|
||||
*/
|
||||
$tags_per_page = apply_filters( 'tagsperpage', $tags_per_page );
|
||||
$tags_per_page = apply_filters_deprecated( 'tagsperpage', array( $tags_per_page ), '2.8.0', 'edit_tags_per_page' );
|
||||
} elseif ( 'category' === $this->screen->taxonomy ) {
|
||||
/**
|
||||
* Filters the number of terms displayed per page for the Categories list table.
|
||||
@@ -508,7 +508,7 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||
* 'Edit', 'Quick Edit', 'Delete', and 'View'.
|
||||
* @param WP_Term $tag Term object.
|
||||
*/
|
||||
$actions = apply_filters( 'tag_row_actions', $actions, $tag );
|
||||
$actions = apply_filters_deprecated( 'tag_row_actions', array( $actions, $tag ), '3.0.0', '{$taxonomy}_row_actions' );
|
||||
|
||||
/**
|
||||
* Filters the action links displayed for each term in the terms list table.
|
||||
|
||||
Reference in New Issue
Block a user