diff --git src/wp-admin/term.php src/wp-admin/term.php
index ec8b359d5d..b32934b48b 100644
|
|
|
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 | * Add the `post_type` as redirect url arg. |
| | 21 | * |
| | 22 | * @since 5.3.0 |
| | 23 | * |
| | 24 | * @link https://core.trac.wordpress.org/ticket/47858 |
| | 25 | */ |
| | 26 | if ( 'post' !== get_current_screen()->post_type ) { |
| | 27 | $sendback = add_query_arg( 'post_type', get_current_screen()->post_type, $sendback ); |
| | 28 | } |
| | 29 | |
| | 30 | wp_redirect( $sendback ); |
| 19 | 31 | exit; |
| 20 | 32 | } |
| 21 | 33 | |