Skip to content

Commit 0e6aebb

Browse files
Merge pull request #1191 from equalizedigital/steve/no-issue/activation-unslash
refactor: remove unused input sanitization and redirect logic from ac…
2 parents 08b90d3 + 486924f commit 0e6aebb

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

includes/activation.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,5 @@ function edac_activation() {
1818
update_option( 'edac_post_types', [ 'post', 'page' ] );
1919
update_option( 'edac_simplified_summary_position', 'after' );
2020

21-
// Sanitize the input.
22-
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Nonce is not required.
23-
$action = isset( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['action'] ) : '';
24-
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce is not required.
25-
$checked = isset( $_POST['checked'] ) ? array_map( 'sanitize_text_field', $_POST['checked'] ) : [];
26-
27-
// Redirect: Don't do redirects when multiple plugins are bulk activated.
28-
if ( 'activate-selected' === $action && count( $checked ) > 1 ) {
29-
return;
30-
}
31-
3221
Accessibility_Statement::add_page();
3322
}

0 commit comments

Comments
 (0)