Update funzioni.php

sostituita funzione get_home_url() con site_url()
This commit is contained in:
Daniel Intrieri 2024-01-29 16:06:11 +01:00 committed by GitHub
parent 54022fae6d
commit dc85ee8ce6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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 '
<div style="text-align:center;z-index:5000;">
@ -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 '
<div style="z-index:5000;">