Make WordPress Core

Changeset 47576 for trunk


Ignore:
Timestamp:
04/14/2020 12:31:18 AM (7 years ago)
Author:
whyisjake
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r47557 r47576  
    42674267                 *
    42684268                 * @since 2.3.0
    4269                  * @deprecated 2.5.0 Use {@see 'term_link'} instead.
    42704269                 *
    42714270                 * @param string $termlink Tag link URL.
    42724271                 * @param int    $term_id  Term ID.
    42734272                 */
    4274                 $termlink = apply_filters_deprecated( 'tag_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
     4273                $termlink = apply_filters( 'tag_link', $termlink, $term->term_id );
    42754274        } elseif ( 'category' === $taxonomy ) {
    42764275
    … …  
    42794278                 *
    42804279                 * @since 1.5.0
    4281                  * @deprecated 2.5.0 Use {@see 'term_link'} instead.
    42824280                 *
    42834281                 * @param string $termlink Category link URL.
    42844282                 * @param int    $term_id  Term ID.
    42854283                 */
    4286                 $termlink = apply_filters_deprecated( 'category_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
     4284                $termlink = apply_filters( 'category_link', $termlink, $term->term_id );
    42874285        }
    42884286
Note: See TracChangeset for help on using the changeset viewer.