WordPress.org

Make WordPress Core

Ticket #36367: 36367.diff

File 36367.diff, 653 bytes (added by DrewAPicture, 4 years ago)
  • src/wp-admin/edit-tags.php

     
    205205        if ( ! empty( $_REQUEST['paged'] ) ) {
    206206                $location = add_query_arg( 'paged', (int) $_REQUEST['paged'], $location );
    207207        }
    208         wp_redirect( $location );
     208
     209        /**
     210         * Filters the taxonomy redirect destination URL.
     211         *
     212         * @since 4.6.0
     213         *
     214         * @param string $location The destination URL.
     215         * @param object $tax      The taxonomy object.
     216         */
     217        wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) );
    209218        exit;
    210219}
    211220