We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a4fd9a commit fa77bfbCopy full SHA for fa77bfb
1 file changed
lib/Cleantalk/Common/Enqueue/Enqueue.php
@@ -288,6 +288,9 @@ private function validateWebPath($path)
288
$this->errorLog(__('Web path for script is invalid: ' . $path, 'cleantalk-spam-protect'));
289
return $path;
290
}
291
+ if (!ini_get('allow_url_fopen')) {
292
+ return $path;
293
+ }
294
$abs_path = str_replace($this->assets_path, $this->plugin_path, $path);
295
if (!@file_exists($abs_path) && !@file_get_contents($abs_path)) {
296
$this->errorLog(__('Script file is not accessible:' . $path, 'cleantalk-spam-protect'));
0 commit comments