patch for jquery url validator working

This commit is contained in:
asus
2024-02-18 02:27:09 +01:00
parent daaf6a8a42
commit ee2dafbccc
5 changed files with 11 additions and 29 deletions

View File

@@ -195,10 +195,7 @@ class PLGNTLS_class
global $wp_scripts;
$already_enqueued = array_search($file->handle, $wp_scripts->queue);
if ($already_enqueued !== false)
{
error_log("double !");
return null;
}
}
else if ($file->ext === "css")
{
@@ -241,8 +238,6 @@ class PLGNTLS_class
$file->basename = pathinfo($file_name, PATHINFO_BASENAME);
$file->handle = "PLGNTLS_" . str_replace(".", "_", $file->basename);
error_log("in init file->handle");
error_log(json_encode($file->handle));
$file->url = $this->get_url().$file_name;
$file->path = $this->get_path().$file_name;