Файловый менеджер - Редактировать - /home/digitalm/invisalign/wp-content/themes/healthy-smiles/admin/upgrader/upgrader.php
Назад
<?php namespace HealthySmilesSpace\Admin\Upgrader; use HealthySmilesSpace\Admin\Upgrader\Upgrader_Utils; use HealthySmilesSpace\ThemeConfig\Theme_Config; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Upgrader. * * Main class for upgrader. * * @since 1.0.0 */ class Upgrader { /** * Upgrader constructor. * * @since 1.0.0 */ public function __construct() { if ( CMSMASTERS_THEME_VERSION === Upgrader_Utils::get_current_version() ) { return; } $this->run_upgrades(); $this->set_version(); } /** * Run upgrades. * * Runs upgrades from the current version to the latest. * * @since 1.0.0 */ public function run_upgrades() { if ( empty( Theme_Config::MAJOR_VERSIONS ) ) { return; } $current_major_version = Upgrader_Utils::get_major_version(); foreach ( Theme_Config::MAJOR_VERSIONS as $major_version ) { $compare_result = version_compare( $current_major_version, $major_version ); if ( 0 < $compare_result ) { continue; } $class_name = 'HealthySmilesSpace\\ThemeConfig\\UpgraderVersions\\Version_' . str_replace( array( '.', '-' ), '', $major_version ); if ( ! class_exists( $class_name ) ) { continue; } new $class_name( 0 === $compare_result ); } } /** * Set latest version. * * @since 1.0.0 */ protected function set_version() { update_option( 'cmsmasters_healthy-smiles_version', CMSMASTERS_THEME_VERSION ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка