Skip to content

WordPress.com Features: Calypso Locale Sync from Calypso to wp-admin #56661

WordPress.com Features: Calypso Locale Sync from Calypso to wp-admin

WordPress.com Features: Calypso Locale Sync from Calypso to wp-admin #56661

Triggered via pull request May 13, 2024 23:51
Status Failure
Total duration 2m 37s
Artifacts

linting.yml

on: pull_request
detect changed files
9s
detect changed files
Copied files are in sync
7s
Copied files are in sync
Changelogger use
16s
Changelogger use
Changelogger validity
54s
Changelogger validity
Project structure
1m 47s
Project structure
PHP Code Sniffer (non-excluded files only)
1m 43s
PHP Code Sniffer (non-excluded files only)
PHP Compatibility
1m 6s
PHP Compatibility
PHP Code Sniffer (changes to excluded files only)
0s
PHP Code Sniffer (changes to excluded files only)
ESLint (non-excluded files only)
0s
ESLint (non-excluded files only)
ESLint (changes to excluded files only)
0s
ESLint (changes to excluded files only)
Lint GitHub Actions yaml files
0s
Lint GitHub Actions yaml files
Check linter exclude lists
0s
Check linter exclude lists
Lock files are up to date
0s
Lock files are up to date
Monorepo package version refs
0s
Monorepo package version refs
Matrix: php_lint
Fit to window
Zoom out
Zoom in

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)