fix: error not showing after post form submission #678
phpcs.yml
on: pull_request
Run PHPCS inspection
12s
Annotations
10 errors and 15 warnings
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L184
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L312
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L440
Capabilities should be used instead of roles. Found "administrator" in function call to current_user_can()
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L441
Capabilities should be used instead of roles. Found "editor" in function call to current_user_can()
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L442
Capabilities should be used instead of roles. Found "author" in function call to current_user_can()
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L443
Capabilities should be used instead of roles. Found "contributor" in function call to current_user_can()
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L594
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L620
If control structure block found as the only statement within an "else" block. Use elseif instead.
|
Run PHPCS inspection:
includes/Ajax/Frontend_Form_Ajax.php#L66
A function call to __() with texts containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
|
Run PHPCS inspection:
includes/Ajax/Frontend_Form_Ajax.php#L66
Multiple placeholders in translatable strings should be ordered. Expected "%1$d, %2$s", but got "%d, %s" in 'Minimum %d character is required for %s'.
|
Run PHPCS inspection
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run PHPCS inspection
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run PHPCS inspection
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run PHPCS inspection
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run PHPCS inspection
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L176
Silencing errors is strongly discouraged. Use proper error checking instead. Found: @Header( 'Content-Type: application/json; charset=' ...
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L278
json_encode() is discouraged. Use wp_json_encode() instead.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L333
Processing form data without nonce verification.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L333
Processing form data without nonce verification.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L334
Processing form data without nonce verification.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L334
Processing form data without nonce verification.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L335
Processing form data without nonce verification.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L335
Processing form data without nonce verification.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L363
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.
|
Run PHPCS inspection:
includes/Frontend/Frontend_Form.php#L500
Processing form data without nonce verification.
|