mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30: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:
@@ -4249,7 +4249,7 @@ function get_term_link( $term, $taxonomy = '' ) {
|
||||
* @param string $termlink Tag link URL.
|
||||
* @param int $term_id Term ID.
|
||||
*/
|
||||
$termlink = apply_filters( 'tag_link', $termlink, $term->term_id );
|
||||
$termlink = apply_filters_deprecated( 'tag_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
|
||||
} elseif ( 'category' === $taxonomy ) {
|
||||
|
||||
/**
|
||||
@@ -4261,7 +4261,7 @@ function get_term_link( $term, $taxonomy = '' ) {
|
||||
* @param string $termlink Category link URL.
|
||||
* @param int $term_id Term ID.
|
||||
*/
|
||||
$termlink = apply_filters( 'category_link', $termlink, $term->term_id );
|
||||
$termlink = apply_filters_deprecated( 'category_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user