From dc85ee8ce642c6c6b7d0a22a315404c635b42684 Mon Sep 17 00:00:00 2001 From: Daniel Intrieri <119604034+Twindrillss@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:06:11 +0100 Subject: [PATCH] Update funzioni.php sostituita funzione get_home_url() con site_url() --- funzioni.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 '