Skip to content

Commit

Permalink
Remove scheduled notice when navigating to the backup tab
Browse files Browse the repository at this point in the history
  • Loading branch information
polevaultweb committed Dec 15, 2021
1 parent e8931f0 commit b405ab7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
history.replaceState(null, null, ' ');
if ( type !== 'backup') {
window.location.hash = type;
} else {
$( '.wp-db-backup-schedule-updated').remove();
}
}

Expand Down
4 changes: 2 additions & 2 deletions wp-db-backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ function backup_menu() {
update_option( 'wp_cron_backup_recipient', sanitize_text_field( $_POST['cron_backup_recipient'] ), false );
}

$feedback .= '<div class="wp-db-backup-updated"><p>' . __( 'Scheduled Backup Options Saved!', 'wp-db-backup' ) . '</p></div>';
$feedback .= '<div class="wp-db-backup-updated wp-db-backup-schedule-updated"><p>' . __( 'Scheduled Backup Options Saved!', 'wp-db-backup' ) . '</p></div>';
endif;

$other_tables = array();
Expand Down Expand Up @@ -1418,7 +1418,7 @@ function( $a ) {
<?php
endif;
?>
<form method="post" action="#schedule">
<form method="post" action="">
<?php
if ( function_exists( 'wp_nonce_field' ) ) {
wp_nonce_field( $this->referer_check_key );}
Expand Down

0 comments on commit b405ab7

Please sign in to comment.