Taxonomy: Un-depracate `category_link` and `tag_link` filters.

Depracating these filter might have been an accident, so let's restore.

Props SergeyBiryukov, audrasjb, peterwilsoncc.
Fixes #49759. 


git-svn-id: https://develop.svn.wordpress.org/trunk@47576 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock 2020-04-14 00:31:18 +00:00
parent d419b1b6d6
commit 7d4a746f27
1 changed files with 2 additions and 4 deletions

View File

@ -4266,24 +4266,22 @@ function get_term_link( $term, $taxonomy = '' ) {
* Filters the tag link. * Filters the tag link.
* *
* @since 2.3.0 * @since 2.3.0
* @deprecated 2.5.0 Use {@see 'term_link'} instead.
* *
* @param string $termlink Tag link URL. * @param string $termlink Tag link URL.
* @param int $term_id Term ID. * @param int $term_id Term ID.
*/ */
$termlink = apply_filters_deprecated( 'tag_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' ); $termlink = apply_filters( 'tag_link', $termlink, $term->term_id );
} elseif ( 'category' === $taxonomy ) { } elseif ( 'category' === $taxonomy ) {
/** /**
* Filters the category link. * Filters the category link.
* *
* @since 1.5.0 * @since 1.5.0
* @deprecated 2.5.0 Use {@see 'term_link'} instead.
* *
* @param string $termlink Category link URL. * @param string $termlink Category link URL.
* @param int $term_id Term ID. * @param int $term_id Term ID.
*/ */
$termlink = apply_filters_deprecated( 'category_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' ); $termlink = apply_filters( 'category_link', $termlink, $term->term_id );
} }
/** /**