WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/09/2019 12:57:27 PM (2 years 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-includes/taxonomy.php

    r46660 r46684  
    42504250         * @param int    $term_id  Term ID.
    42514251         */
    4252         $termlink = apply_filters( 'tag_link', $termlink, $term->term_id );
     4252        $termlink = apply_filters_deprecated( 'tag_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
    42534253    } elseif ( 'category' === $taxonomy ) {
    42544254
     
    42624262         * @param int    $term_id  Term ID.
    42634263         */
    4264         $termlink = apply_filters( 'category_link', $termlink, $term->term_id );
     4264        $termlink = apply_filters_deprecated( 'category_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
    42654265    }
    42664266
Note: See TracChangeset for help on using the changeset viewer.