diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 79d18f5fcd..2207978878 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -3932,6 +3932,16 @@ function get_term_link( $term, $taxonomy = '' ) { $termlink = $wp_rewrite->get_extra_permastruct($taxonomy); + /** + * Filters the permalink structure for a terms before token replacement occurs. + * + * @since 4.9.0 + * + * @param string $termlink The permalink structure for the term's taxonomy. + * @param WP_Term $term The term object. + */ + $termlink = apply_filters( 'pre_term_link', $termlink, $term ); + $slug = $term->slug; $t = get_taxonomy($taxonomy); diff --git a/wp-includes/version.php b/wp-includes/version.php index a74ae0566b..384ad293c8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-41190'; +$wp_version = '4.9-alpha-41191'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.