Skip to content

UR-1170 Fix - User fields not saving #675

UR-1170 Fix - User fields not saving

UR-1170 Fix - User fields not saving #675

Triggered via pull request September 5, 2023 07:23
Status Failure
Total duration 1m 54s
Artifacts

pr-code-sniff.yml

on: pull_request
Code sniff (PHP 7.4, WP Latest)
1m 43s
Code sniff (PHP 7.4, WP Latest)
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 1 warning
Code sniff (PHP 7.4, WP Latest)
Process completed with exit code 2.
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L660
Doc comment for parameter "$field_name" missing
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L2870
Expected 1 spaces after opening parenthesis; 0 found
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L2870
Use placeholders and $wpdb->prepare(); found interpolated variable $post_table at "SELECT COUNT(*) FROM {$post_table} WHERE ID = '{$login_page_id}' AND ( post_content LIKE '%[user_registration_login%' OR post_content LIKE '%[user_registration_my_account%' OR post_content LIKE '%[woocommerce_my_account%' )"
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L2870
Use placeholders and $wpdb->prepare(); found interpolated variable $login_page_id at "SELECT COUNT(*) FROM {$post_table} WHERE ID = '{$login_page_id}' AND ( post_content LIKE '%[user_registration_login%' OR post_content LIKE '%[user_registration_my_account%' OR post_content LIKE '%[woocommerce_my_account%' )"
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L2870
SQL wildcards for a LIKE query should be passed in through a replacement parameter. Found: LIKE '%[user_registration_login%'.
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L2870
SQL wildcards for a LIKE query should be passed in through a replacement parameter. Found: LIKE '%[user_registration_my_account%'.
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L2870
SQL wildcards for a LIKE query should be passed in through a replacement parameter. Found: LIKE '%[woocommerce_my_account%'.
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L2873
Expected 1 space(s) after closing parenthesis; found 0
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L2873
Space between opening control structure and closing parenthesis is required
Code sniff (PHP 7.4, WP Latest): includes/functions-ur-core.php#L2875
Expected 1 spaces after opening parenthesis; 0 found
Code sniff (PHP 7.4, WP Latest)
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/