Skip to content

Commit

Permalink
Return to the current page after enabled or disabling db update notices
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Jul 29, 2020
1 parent d498341 commit e26076a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/admin/notes/class-wc-notes-run-db-update.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private static function note_up_to_date( $note, $update_url, $current_actions )
private static function update_needed_notice( $note_id = null ) {
$update_url = html_entity_decode(
wp_nonce_url(
add_query_arg( 'do_update_woocommerce', 'true', admin_url( 'admin.php?page=wc-settings' ) ),
add_query_arg( 'do_update_woocommerce', 'true', wc_get_current_admin_page() ),
'wc_db_update',
'wc_db_update_nonce'
)
Expand Down Expand Up @@ -210,7 +210,7 @@ private static function update_done_notice( $note_id ) {
add_query_arg(
'wc-hide-notice',
'update',
admin_url( 'admin.php?page=wc-settings' )
wc_get_current_admin_page()
),
'woocommerce_hide_notices_nonce',
'_wc_notice_nonce'
Expand Down

0 comments on commit e26076a

Please sign in to comment.