WordPress.com Features: Calypso Locale Sync from Calypso to wp-admin #56661
Annotations
7 errors and 3 warnings
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wp-admin-locale-sync/wp-admin-locale-sync.php#L10
Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_METHOD']. Use isset() or empty() to check the index exists before using it (WordPress.Security.ValidatedSanitizedInput.InputNotValidated)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wp-admin-locale-sync/wp-admin-locale-sync.php#L15
Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_URI']. Use isset() or empty() to check the index exists before using it (WordPress.Security.ValidatedSanitizedInput.InputNotValidated)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wp-admin-locale-sync/wp-admin-locale-sync.php#L15
$_SERVER['REQUEST_URI'] not unslashed before sanitization. Use wp_unslash() or similar (WordPress.Security.ValidatedSanitizedInput.MissingUnslash)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wp-admin-locale-sync/wp-admin-locale-sync.php#L15
Detected usage of a non-sanitized input variable: $_SERVER['REQUEST_URI'] (WordPress.Security.ValidatedSanitizedInput.InputNotSanitized)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wp-admin-locale-sync/wp-admin-locale-sync.php#L40
Detected usage of a possibly undefined superglobal array index: $_SERVER['REQUEST_URI']. Use isset() or empty() to check the index exists before using it (WordPress.Security.ValidatedSanitizedInput.InputNotValidated)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wp-admin-locale-sync/wp-admin-locale-sync.php#L40
$_SERVER['REQUEST_URI'] not unslashed before sanitization. Use wp_unslash() or similar (WordPress.Security.ValidatedSanitizedInput.MissingUnslash)
|
Run phpcs
Process completed with exit code 1.
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wp-admin-locale-sync/wp-admin-locale-sync.php#L17
Processing form data without nonce verification. (WordPress.Security.NonceVerification.Recommended)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wp-admin-locale-sync/wp-admin-locale-sync.php#L17
Processing form data without nonce verification. (WordPress.Security.NonceVerification.Recommended)
|
Run phpcs:
projects/packages/jetpack-mu-wpcom/src/features/wp-admin-locale-sync/wp-admin-locale-sync.php#L40
wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed. (WordPress.Security.SafeRedirect.wp_redirect_wp_redirect)
|
Loading