Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/sitepress-multilingual-cms/classes/upgrade/commands/RefreshTranslationServices.php
Назад
<?php namespace WPML\TM\Upgrade\Commands; use WPML\TM\Menu\TranslationServices\Troubleshooting\RefreshServices; use WPML\TM\Menu\TranslationServices\Troubleshooting\RefreshServicesFactory; class RefreshTranslationServices implements \IWPML_Upgrade_Command { const WPML_VERSION_SINCE_PREVIEW_LOGOS_AVAILABLE = '4.4.0'; /** @var bool $result */ private $result = false; /** @var RefreshServicesFactory */ private $refreshServicesFactory; /** @var callable */ private $isHigherThanInstallationVersion; public function __construct( array $args ) { $this->refreshServicesFactory = $args[0]; $this->isHigherThanInstallationVersion = $args[1]; } /** * @return bool */ public function run_admin() { $this->result = true; if ( call_user_func( $this->isHigherThanInstallationVersion, self::WPML_VERSION_SINCE_PREVIEW_LOGOS_AVAILABLE ) ) { $this->result = $this->refreshServicesFactory->create_an_instance()->refresh_services(); } return $this->result; } /** * Unused. * * @return null */ public function run_ajax() { return null; } /** * Unused. * * @return null */ public function run_frontend() { return null; } /** * @return bool */ public function get_results() { return $this->result; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка