Title: Code left-overs or missing functionality?
Last modified: July 25, 2020

---

# Code left-overs or missing functionality?

 *  Resolved [danielgm](https://wordpress.org/support/users/danielgm/)
 * (@danielgm)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/code-left-overs-or-missing-functionality/)
 * What seems to be the point of the file
 * `cf7/hcaptcha-cf7-1.php`
 * It is not included anywhere.
 * Also, what’s the point of the following code in cf7/hcaptcha-cf7.php around line
   20:
 *     ```
       function enqueue_hcap_cf7_script() {
       	global $hcap_cf7;
   
       	if ( ! $hcap_cf7 ) {
       		return;
       	}
       ```
   
 * $hcap_cf7 is set to true in the shortcode function but that code seems to run
   later so effectively this conditional prevents the whole inline script that follows
   from ever being inserted into the page. Is it not necessary?

Viewing 1 replies (of 1 total)

 *  Plugin Author [hcaptcha](https://wordpress.org/support/users/hcaptcha/)
 * (@hcaptcha)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/code-left-overs-or-missing-functionality/#post-13188797)
 * Hi, folks have been doing a lot of refactoring for WPCS lately, so it is possible
   some bits were left over. Please open a PR over at [https://github.com/hCaptcha/hcaptcha-wordpress-plugin](https://github.com/hCaptcha/hcaptcha-wordpress-plugin)

Viewing 1 replies (of 1 total)

The topic ‘Code left-overs or missing functionality?’ is closed to new replies.

 * ![](https://ps.w.org/hcaptcha-for-forms-and-more/assets/icon.svg?rev=3026321)
 * [hCaptcha for WP](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/)
 * [Active Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [hcaptcha](https://wordpress.org/support/users/hcaptcha/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/code-left-overs-or-missing-functionality/#post-13188797)
 * Status: resolved