Add missing post_type=product in url

Show Products->Categories active when clicked on "Make Default" link
under any product category and fix #23923.
This commit is contained in:
rmalviya 2019-06-14 12:28:08 +05:30
parent aaf789ad64
commit 4190e9fd4b
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ class WC_Admin_Taxonomies {
if ( $default_category_id !== $term->term_id && current_user_can( 'edit_term', $term->term_id ) ) {
$actions['make_default'] = sprintf(
'<a href="%s" aria-label="%s">%s</a>',
wp_nonce_url( 'edit-tags.php?action=make_default&amp;taxonomy=product_cat&amp;tag_ID=' . absint( $term->term_id ), 'make_default_' . absint( $term->term_id ) ),
wp_nonce_url( 'edit-tags.php?action=make_default&amp;taxonomy=product_cat&amp;post_type=product&amp;tag_ID=' . absint( $term->term_id ), 'make_default_' . absint( $term->term_id ) ),
/* translators: %s: taxonomy term name */
esc_attr( sprintf( __( 'Make &#8220;%s&#8221; the default category', 'woocommerce' ), $term->name ) ),
__( 'Make default', 'woocommerce' )