WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/09/2019 12:57:27 PM (11 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Consistently use do_action_deprecated() and apply_filters_deprecated() for deprecated hooks.

Props jrf.
See #48255.

File:
1 edited

Legend:

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

    r45932 r46684  
    9898             * @param int $tags_per_page Number of tags to be displayed. Default 20.
    9999             */
    100             $tags_per_page = apply_filters( 'tagsperpage', $tags_per_page );
     100            $tags_per_page = apply_filters_deprecated( 'tagsperpage', array( $tags_per_page ), '2.8.0', 'edit_tags_per_page' );
    101101        } elseif ( 'category' === $this->screen->taxonomy ) {
    102102            /**
     
    509509         * @param WP_Term  $tag     Term object.
    510510         */
    511         $actions = apply_filters( 'tag_row_actions', $actions, $tag );
     511        $actions = apply_filters_deprecated( 'tag_row_actions', array( $actions, $tag ), '3.0.0', '{$taxonomy}_row_actions' );
    512512
    513513        /**
Note: See TracChangeset for help on using the changeset viewer.