diff --git a/admin/post_metabox.php b/admin/post_metabox.php index 287af117..b922dca5 100644 --- a/admin/post_metabox.php +++ b/admin/post_metabox.php @@ -206,7 +206,7 @@ function wpt_redirect_after_save($location, $post_id) { // Check if it's the desired post type if (get_post_type($post_id) == 'wpt_product_table') { // Append the desired anchor to the redirect location - $location = add_query_arg('message', 'updated', $location) . '#' . $wpt_last_active_tab; + $location = add_query_arg('message', 'updated', $location); $location = add_query_arg('wpt_active_tab', $wpt_last_active_tab, $location); } return $location; diff --git a/admin/post_metabox_form.php b/admin/post_metabox_form.php index ba8e5b5c..7022c422 100644 --- a/admin/post_metabox_form.php +++ b/admin/post_metabox_form.php @@ -56,7 +56,7 @@ using: setLastActiveTab(tabName); from js code --> - +