Make WordPress Core

Changeset 47577 for branches/5.4


Ignore:
Timestamp:
04/14/2020 12:32:37 AM (6 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 for the 5.4 branch.

Location:
branches/5.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.4

  • branches/5.4/src/wp-includes/taxonomy.php

    r47219 r47577  
    42494249                 *
    42504250                 * @since 2.3.0
    4251                  * @deprecated 2.5.0 Use {@see 'term_link'} instead.
    42524251                 *
    42534252                 * @param string $termlink Tag link URL.
    42544253                 * @param int    $term_id  Term ID.
    42554254                 */
    4256                 $termlink = apply_filters_deprecated( 'tag_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
     4255                $termlink = apply_filters( 'tag_link', $termlink, $term->term_id );
    42574256        } elseif ( 'category' === $taxonomy ) {
    42584257
    … …  
    42614260                 *
    42624261                 * @since 1.5.0
    4263                  * @deprecated 2.5.0 Use {@see 'term_link'} instead.
    42644262                 *
    42654263                 * @param string $termlink Category link URL.
    42664264                 * @param int    $term_id  Term ID.
    42674265                 */
    4268                 $termlink = apply_filters_deprecated( 'category_link', array( $termlink, $term->term_id ), '2.5.0', 'term_link' );
     4266                $termlink = apply_filters( 'category_link', $termlink, $term->term_id );
    42694267        }
    42704268
Note: See TracChangeset for help on using the changeset viewer.