Make WordPress Core

Ticket #39601: 39601.patch

File 39601.patch, 853 bytes (added by nikeo, 8 years ago)
  • src/wp-includes/taxonomy.php

    diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
    index d088b3c21..4493bfda3 100644
    a b function get_term_link( $term, $taxonomy = '' ) { 
    38593859
    38603860        $taxonomy = $term->taxonomy;
    38613861
    3862         $termlink = $wp_rewrite->get_extra_permastruct($taxonomy);
     3862        /**
     3863   * Filters the permalink for a term before applying the permalink structure
     3864   *
     3865   *
     3866   * @since 4.7.2
     3867   *
     3868   * @param string|false  $wp_rewrite->get_extra_permastruct($taxonomy) The permalink structure for this taxonomy, or false if not set.
     3869   * @param string        $taxonomy
     3870   * @param WP_Term       $term
     3871   */
     3872  $termlink = apply_filters( 'pre_term_link', $wp_rewrite->get_extra_permastruct($taxonomy), $taxonomy, $term );
    38633873
    38643874        $slug = $term->slug;
    38653875        $t = get_taxonomy($taxonomy);