fix: file upload field allowed extension #1275
Annotations
8 errors and 12 warnings
|
Detect coding standard violations
Process completed with exit code 1.
|
|
Detect coding standard violations:
wpuf-functions.php#L980
If control structure block found as the only statement within an "else" block. Use elseif instead.
|
|
Detect coding standard violations:
wpuf-functions.php#L482
The parameter "array(
'hide_empty' => false,
'parent' => $attr,
)" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.
|
|
Detect coding standard violations:
wpuf-functions.php#L330
Only one object structure is allowed in a file
|
|
Detect coding standard violations:
wpuf-functions.php#L277
A file should either contain function declarations or OO structure declarations, but not both. Found 140 function declaration(s) and 2 OO structure declaration(s). The first function declaration was found on line 15; the first OO declaration was found on line 277
|
|
Detect coding standard violations:
wpuf-functions.php#L93
Processing form data without nonce verification.
|
|
Detect coding standard violations:
wpuf-functions.php#L93
Processing form data without nonce verification.
|
|
Detect coding standard violations:
wpuf-functions.php#L87
Processing form data without nonce verification.
|
|
Detect coding standard violations:
wpuf-functions.php#L1526
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
|
|
Detect coding standard violations:
wpuf-functions.php#L1312
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
|
|
Detect coding standard violations:
wpuf-functions.php#L1036
parse_url() is discouraged because of inconsistency in the output across PHP versions; use wp_parse_url() instead.
|
|
Detect coding standard violations:
wpuf-functions.php#L954
When passing the $key parameter to get_post_meta(), it is recommended to also pass the $single parameter to explicitly indicate whether a single value or multiple values are expected to be returned.
|
|
Detect coding standard violations:
wpuf-functions.php#L826
unlink() is discouraged. Use wp_delete_file() to delete a file.
|
|
Detect coding standard violations:
wpuf-functions.php#L719
It is recommended not to use reserved keyword "default" as function parameter name. Found: $default
|
|
Detect coding standard violations:
wpuf-functions.php#L719
The method parameter $args is never used
|
|
Detect coding standard violations:
wpuf-functions.php#L397
It is recommended not to use reserved keyword "class" as function parameter name. Found: $class
|
|
Detect coding standard violations:
wpuf-functions.php#L152
It is recommended not to use reserved keyword "list" as function parameter name. Found: $list
|
|
Detect coding standard violations:
wpuf-functions.php#L86
The method parameter $post_id is never used
|
|
Setup cache
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/
|
|
Setup cache
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/
|
Loading