| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/HostingSpaces/admin/tickwaves.co.uk/wwwroot/wp-content/themes/blocksy/inc/classes/ |
Upload File : |
<?php
namespace Blocksy;
class Database {
private $mods = '__EMPTY__';
public function get_theme_mod($name, $default_value = false) {
if (
is_admin()
||
is_customize_preview()
||
wp_doing_ajax()
||
$this->mods === '__EMPTY__'
) {
$this->mods = get_theme_mods();
}
$value = $default_value;
if (isset($this->mods[$name])) {
$value = $this->mods[$name];
}
/** This filter is documented in wp-includes/theme.php */
return apply_filters("theme_mod_{$name}", $value);
}
public function wipe_cache() {
$this->mods = '__EMPTY__';
}
}