We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 612cb29 commit 81239c8Copy full SHA for 81239c8
1 file changed
plugins/multisite.php
@@ -22,7 +22,7 @@ function wp_super_cache_blogs_field( $name, $blog_id ) {
22
23
$blog_id = (int) $blog_id;
24
25
- if ( isset( $_GET['id'], $_GET['action'], $_GET['_wpnonce'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
+ if ( isset( $_GET['id'] ) && isset( $_GET['action'] ) && isset( $_GET['_wpnonce'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
26
&& filter_input( INPUT_GET, 'id', FILTER_VALIDATE_INT ) === $blog_id
27
&& wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'wp-cache' . $blog_id ) // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
28
) {
0 commit comments