v5.1.1
This commit is contained in:
parent
31f7e97d39
commit
db98c4438c
1 changed files with 123 additions and 133 deletions
|
|
@ -1437,7 +1437,6 @@ function wpvulnerability_render_admin_tab_tools() {
|
|||
<strong style="color: #b32d2e;"><?php esc_html_e( 'This action cannot be undone.', 'wpvulnerability' ); ?></strong>
|
||||
</p>
|
||||
<form method="post" action="<?php echo esc_url( $tools_action ); ?>" onsubmit="return confirm('<?php echo esc_js( __( 'Are you sure you want to reset all WPVulnerability data? This action cannot be undone.', 'wpvulnerability' ) ); ?>');">
|
||||
<?php wp_nonce_field( 'wpvulnerability_reset_action', 'wpvulnerability_reset_nonce' ); ?>
|
||||
<?php wp_nonce_field( 'wpvulnerability_full_reset_action', 'wpvulnerability_full_reset_nonce' ); ?>
|
||||
<input type="submit" name="wpvulnerability_full_reset" value="<?php esc_attr_e( 'Reset Plugin', 'wpvulnerability' ); ?>" class="button button-delete">
|
||||
</form>
|
||||
|
|
@ -2211,7 +2210,7 @@ function wpvulnerability_admin_sanitize( $input ) {
|
|||
foreach ( $input_email_text as $input_email ) {
|
||||
$input_email = sanitize_email( trim( (string) $input_email ) );
|
||||
|
||||
if ( $input_email ) {
|
||||
if ( is_email( $input_email ) ) {
|
||||
$input_emails[] = $input_email;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue