diff --git a/funzioni.php b/funzioni.php index 6ae99e8..ab133e1 100644 --- a/funzioni.php +++ b/funzioni.php @@ -53,7 +53,7 @@ if ($controllo){ $cartelle = dirname(__FILE__); $ultimacartella = basename($cartelle); - $urlcomp = get_home_url().'/wp-content/plugins/'.$ultimacartella.'/menu/'; + $urlcomp = site_url()().'/wp-content/plugins/'.$ultimacartella.'/menu/'; $finalurl = $urlcomp.$urlfileprescelto; @@ -249,7 +249,7 @@ function generahtmlmodal($filepdf){ $cartelle = dirname(__FILE__); $ultimacartella = basename($cartelle); - $urlcomp = get_home_url().'/wp-content/plugins/'.$ultimacartella.'/'; + $urlcomp = site_url()().'/wp-content/plugins/'.$ultimacartella.'/'; return '
@@ -395,7 +395,7 @@ function generahtmlmodalridotto($filepdf,$etichetta){ $cartelle = dirname(__FILE__); $ultimacartella = basename($cartelle); - $urlcomp = get_home_url().'/wp-content/plugins/'.$ultimacartella.'/'; + $urlcomp = site_url()().'/wp-content/plugins/'.$ultimacartella.'/'; return '