diff --git a/wp-admin/term.php b/wp-admin/term.php
index ec8b359d5d..dbdddcbc64 100644
|
a
|
b
|
if ( empty( $_REQUEST['tag_ID'] ) ) {
|
| 15 | 15 | if ( ! empty( $taxnow ) ) { |
| 16 | 16 | $sendback = add_query_arg( array( 'taxonomy' => $taxnow ), $sendback ); |
| 17 | 17 | } |
| 18 | | wp_redirect( esc_url( $sendback ) ); |
| | 18 | |
| | 19 | /** |
| | 20 | * Added "post_type" in redirect url if not null. |
| | 21 | * |
| | 22 | * @since 5.3.0 |
| | 23 | */ |
| | 24 | |
| | 25 | if ( ! empty( $typenow ) ) { |
| | 26 | $sendback = add_query_arg( array( 'post_type' => $typenow ), $sendback ); |
| | 27 | } |
| | 28 | |
| | 29 | wp_redirect( $sendback ); |
| 19 | 30 | exit; |
| 20 | 31 | } |
| 21 | 32 | |