diff --git a/src/wp-admin/term.php b/src/wp-admin/term.php index ec8b359d5d..48932209e0 100644 --- a/src/wp-admin/term.php +++ b/src/wp-admin/term.php @@ -15,7 +15,12 @@ if ( empty( $_REQUEST['tag_ID'] ) ) { if ( ! empty( $taxnow ) ) { $sendback = add_query_arg( array( 'taxonomy' => $taxnow ), $sendback ); } - wp_redirect( esc_url( $sendback ) ); + + if ( 'post' !== get_current_screen()->post_type ) { + $sendback = add_query_arg( 'post_type', get_current_screen()->post_type, $sendback ); + } + + wp_redirect( esc_url_raw( $sendback ) ); exit; }