Skip to content

Commit

Permalink
redirect issue solved
Browse files Browse the repository at this point in the history
  • Loading branch information
codersaiful committed May 7, 2024
1 parent 85f80ab commit 29162aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/post_metabox.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@ function wpt_redirect_after_save($location, $post_id) {
*/

if ( ! isset( $_POST['wpt_shortcode_nonce_value'] ) ) { // Check if our nonce is set.
return;
return $location;
}

// verify this came from the our screen and with proper authorization,
// because save_post can be triggered at other times
if( ! wp_verify_nonce( $_POST['wpt_shortcode_nonce_value'], plugin_basename(__FILE__) ) ) {
return;
return $location;
}

$wpt_last_active_tab = $_POST['wpt_last_active_tab'] ?? 'column_settings';
Expand Down

0 comments on commit 29162aa

Please sign in to comment.