Skip to content

Commit 81239c8

Browse files
stodorovickraftbj
authored andcommitted
fix: split isset() to single argument per call
1 parent 612cb29 commit 81239c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/multisite.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function wp_super_cache_blogs_field( $name, $blog_id ) {
2222

2323
$blog_id = (int) $blog_id;
2424

25-
if ( isset( $_GET['id'], $_GET['action'], $_GET['_wpnonce'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
25+
if ( isset( $_GET['id'] ) && isset( $_GET['action'] ) && isset( $_GET['_wpnonce'] ) // phpcs:ignore WordPress.Security.NonceVerification.Recommended
2626
&& filter_input( INPUT_GET, 'id', FILTER_VALIDATE_INT ) === $blog_id
2727
&& wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ), 'wp-cache' . $blog_id ) // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
2828
) {

0 commit comments

Comments
 (0)