Title: Script Blocker &#8211; coding error
Last modified: February 11, 2023

---

# Script Blocker – coding error

 *  Resolved [DaveWP196](https://wordpress.org/support/users/davewp196/)
 * (@davewp196)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/script-blocker-coding-error/)
 * Hi
 * On line 138 in script-blocker.php, there is a coding error in so far as `!$this-
   >script_data returns true `where an empty array is returned by $this->get_script_data().
 * The effect is to make multiple calls to the $this->get_script_data for each entry
   in global $wt_cli_integration_list, which triggers multiple “SHOW TABLES” sql
   requests when only one search of the database is required.
 * Change the line to be
 * `if ( is_null($this->script_data) ) {`

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/script-blocker-coding-error/#post-16472286)
 * Hi [@davewp196](https://wordpress.org/support/users/davewp196/),
   Greetings from
   CookieYes!Thank you for taking the time to bring this to our attention. We will
   thoroughly review the code and keep you updated on any updates or changes. If
   you have any further questions or concerns, please don’t hesitate to reach out
   to us.
 *  Plugin Support [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * (@cookieyesteam)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/script-blocker-coding-error/#post-16479869)
 * Hi [@davewp196](https://wordpress.org/support/users/davewp196/),
 * After carefully considering your recommendation, we agree with it and appreciate
   you bringing it to our attention.
 * We have added it to our development queue, and it will be implemented in an upcoming
   release of the plugin.
 * Feel free to let us know if you have questions or concerns!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Script Blocker – coding error’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [CookieYes Team](https://wordpress.org/support/users/cookieyesteam/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/script-blocker-coding-error/#post-16479869)
 * Status: resolved