WordPress.com Features: Calypso Locale Sync from Calypso to wp-admin #56661
linting.yml
on: pull_request
detect changed files
9s
Copied files are in sync
7s
Changelogger use
16s
Changelogger validity
54s
Project structure
1m 47s
PHP Code Sniffer (non-excluded files only)
1m 43s
PHP Compatibility
1m 6s
PHP Code Sniffer (changes to excluded files only)
0s
ESLint (non-excluded files only)
0s
ESLint (changes to excluded files only)
0s
Lint GitHub Actions yaml files
0s
Check linter exclude lists
0s
Lock files are up to date
0s
Monorepo package version refs
0s
Matrix: php_lint
Annotations
11 errors and 3 warnings
Changelogger validity:
projects/packages/jetpack-mu-wpcom/package.json#L4
Version mismatch, expected 5.30.0-alpha but found 5.29.1!
You might use `tools/project-version.sh -f -u 5.30.0-alpha packages/jetpack-mu-wpcom` or `tools/fixup-project-versions.sh` to fix this.
|
Changelogger validity:
projects/packages/jetpack-mu-wpcom/composer.json#L60
Version mismatch, expected 5.30.x-dev but found 5.29.x-dev!
You might use `tools/project-version.sh -f -u 5.30.0-alpha packages/jetpack-mu-wpcom` or `tools/fixup-project-versions.sh` to fix this.
|
Changelogger validity:
projects/packages/jetpack-mu-wpcom/src/class-jetpack-mu-wpcom.php#L16
Version mismatch, expected 5.30.0-alpha but found 5.29.1!
You might use `tools/project-version.sh -f -u 5.30.0-alpha packages/jetpack-mu-wpcom` or `tools/fixup-project-versions.sh` to fix this.
|
Changelogger validity
Process completed with exit code 1.
|
PHP Code Sniffer (non-excluded files only):
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)
|
PHP Code Sniffer (non-excluded files only):
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)
|
PHP Code Sniffer (non-excluded files only):
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)
|
PHP Code Sniffer (non-excluded files only):
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)
|
PHP Code Sniffer (non-excluded files only):
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)
|
PHP Code Sniffer (non-excluded files only):
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)
|
PHP Code Sniffer (non-excluded files only)
Process completed with exit code 1.
|
PHP Code Sniffer (non-excluded files only):
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)
|
PHP Code Sniffer (non-excluded files only):
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)
|
PHP Code Sniffer (non-excluded files only):
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)
|