☎️ enhance: Backend validation of phone numbers all over the plugin #2508
phpcs.yml
on: pull_request
Run PHPCS inspection
47s
Annotations
10 errors and 13 warnings
Run PHPCS inspection:
includes/Frontend/MyAccount/BecomeAVendor.php#L119
Detected usage of a non-sanitized input variable: $_POST['phone']
|
Run PHPCS inspection:
includes/Registration.php#L148
Detected usage of a non-sanitized input variable: $_POST['dokan_address']
|
Run PHPCS inspection:
includes/Registration.php#L149
Detected usage of a non-sanitized input variable: $_POST['phone']
|
Run PHPCS inspection:
includes/Admin/UserProfile.php#L120
Unnecessary "echo sprintf(...)" found. Use "printf(...)" instead.
|
Run PHPCS inspection:
includes/Admin/UserProfile.php#L564
Detected usage of a non-sanitized input variable: $_POST['dokan_store_phone']
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L566
Detected usage of a non-sanitized input variable: $_POST['opening_time'][$day_key]
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L567
Detected usage of a non-sanitized input variable: $_POST['closing_time'][$day_key]
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L613
Detected usage of a non-sanitized input variable: $_POST['dokan_address']
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L617
Detected usage of a non-sanitized input variable: $_POST['setting_phone']
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L638
Detected usage of a non-sanitized input variable: $_POST['settings']['bank']
|
Run PHPCS inspection
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/
|
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/Admin/UserProfile.php#L56
Found unknown capability "manage_woocommerce" 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.
|
Run PHPCS inspection:
includes/Admin/UserProfile.php#L60
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.
|
Run PHPCS inspection:
includes/Admin/UserProfile.php#L542
Found unknown capability "manage_woocommerce" 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.
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L134
Found unknown capability "dokan_view_store_settings_menu" 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.
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L320
Found unknown capability "dokan_view_store_social_menu" 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.
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L332
Found unknown capability "dokan_view_store_settings_menu" 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.
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L344
Found unknown capability "dokan_view_store_payment_menu" 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.
|
Run PHPCS inspection:
includes/Dashboard/Templates/Settings.php#L826
The method parameter $method is never used
|
Run PHPCS inspection:
includes/template-tags.php#L660
The method parameter $title is never used
|
Run PHPCS inspection:
includes/functions.php#L36
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.
|