🎯 fix: Product edit link on email template redirects to the products listing instead of single product edit page #2538
Annotations
10 errors and 13 warnings
includes/Dashboard/Templates/Products.php#L300
If control structure block found as the only statement within an "else" block. Use elseif instead.
|
includes/Dashboard/Templates/Products.php#L343
If control structure block found as the only statement within an "else" block. Use elseif instead.
|
includes/Dashboard/Templates/Products.php#L634
The closing brace for the class must go on the next line after the body
|
includes/functions.php#L303
Use placeholders and $wpdb->prepare(); found interpolated variable {$exclude_product_types_text} at WHERE tt.taxonomy = 'product_type' AND t.slug NOT IN ({$exclude_product_types_text})
|
includes/functions.php#L1103
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
|
includes/functions.php#L1194
Detected usage of a possibly undefined superglobal array index: $_SERVER['QUERY_STRING']. Use isset() or empty() to check the index exists before using it
|
includes/functions.php#L1194
$_SERVER data not unslashed before sanitization. Use wp_unslash() or similar
|
includes/functions.php#L1194
Detected usage of a non-sanitized input variable: $_SERVER['QUERY_STRING']
|
includes/functions.php#L2308
Detected usage of a non-sanitized input variable: $_GET['product_search_name']
|
includes/functions.php#L3955
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
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/
|
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/
|
includes/Dashboard/Templates/Products.php#L207
Found unknown capability "dokan_edit_product" in function call to current_user_can(). Please check the spelling of the capability. If this is a custom capability, please verify the capability is registered with WordPress via a call to WP_Role(s)->add_cap().
Custom capabilities can be made known to this sniff by setting the "custom_capabilities" property in the PHPCS ruleset.
|
includes/Dashboard/Templates/Products.php#L228
Processing form data without nonce verification.
|
includes/Dashboard/Templates/Products.php#L228
Processing form data without nonce verification.
|
includes/Dashboard/Templates/Products.php#L229
Processing form data without nonce verification.
|
includes/Dashboard/Templates/Products.php#L230
Processing form data without nonce verification.
|
includes/Dashboard/Templates/Products.php#L250
The method parameter $action is never used
|
includes/Dashboard/Templates/Products.php#L407
Found unknown capability "dokan_edit_product" in function call to current_user_can(). Please check the spelling of the capability. If this is a custom capability, please verify the capability is registered with WordPress via a call to WP_Role(s)->add_cap().
Custom capabilities can be made known to this sniff by setting the "custom_capabilities" property in the PHPCS ruleset.
|
includes/Dashboard/Templates/Products.php#L599
Found unknown capability "dokan_delete_product" in function call to current_user_can(). Please check the spelling of the capability. If this is a custom capability, please verify the capability is registered with WordPress via a call to WP_Role(s)->add_cap().
Custom capabilities can be made known to this sniff by setting the "custom_capabilities" property in the PHPCS ruleset.
|
includes/functions.php#L49
Found unknown capability "vendor_staff" in function call to current_user_can(). Please check the spelling of the capability. If this is a custom capability, please verify the capability is registered with WordPress via a call to WP_Role(s)->add_cap().
Custom capabilities can be made known to this sniff by setting the "custom_capabilities" property in the PHPCS ruleset.
|
includes/functions.php#L71
Found unknown capability "dokandar" in function call to user_can(). Please check the spelling of the capability. If this is a custom capability, please verify the capability is registered with WordPress via a call to WP_Role(s)->add_cap().
Custom capabilities can be made known to this sniff by setting the "custom_capabilities" property in the PHPCS ruleset.
|
The logs for this run have expired and are no longer available.
Loading