diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index e0602017d0..e80dae4e59 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -205,7 +205,16 @@ if ( $location ) { if ( ! empty( $_REQUEST['paged'] ) ) { $location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location ); } - wp_redirect( $location ); + + /** + * Filters the taxonomy redirect destination URL. + * + * @since 4.6.0 + * + * @param string $location The destination URL. + * @param object $tax The taxonomy object. + */ + wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) ); exit; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 24be859be9..d16f12355a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37695'; +$wp_version = '4.6-alpha-37696'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.