WordPress.org

Make WordPress Core

Ticket #34055: 34055.patch

File 34055.patch, 653 bytes (added by Chouby, 5 years ago)
  • taxonomy-functions.php

     
    43344334                }
    43354335                $links = array();
    43364336
     4337                /**
     4338                 * Filter the terms outputed by get_the_taxonomies
     4339                 *
     4340                 * @since 4.4.0
     4341                 *
     4342                 * @param array   $terms The array of terms associated to the post
     4343                 * @param WP_Post $post  The post
     4344                 */
     4345                $terms = apply_filters( 'the_taxonomies_terms', $terms, $post );
     4346
    43374347                foreach ( $terms as $term ) {
    43384348                        $links[] = wp_sprintf( $t['term_template'], esc_attr( get_term_link( $term ) ), $term->name );
    43394349                }