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)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Script Blocker – coding error’ is closed to new replies.