HEX
Server: Apache/2.4.66 (Debian)
System: Linux ouvweb01 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64
User: respire.localocb5 (24651)
PHP: 8.3.30
Disabled: popen,proc_open,disk_free_space,diskfreespace,leak,exec,system,shell_exec,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_getpriority,pcntl_setpriority,pcntl_signal_dispatch,pcntl_signal,pcntl_sigprocmask,pcntl_sigtimedwait
Upload Files
File: /var/www/vhosts/respire.localoco.net/httpdocs/wp-content/themes/blocksy/inc/classes/database.php
<?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__';
	}
}