Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/sitepress-multilingual-cms/classes/setup/endpoints/CurrentStep.php
Назад
<?php namespace WPML\Setup\Endpoint; use WPML\Ajax\IHandler; use WPML\Collect\Support\Collection; use WPML\FP\Either; use WPML\FP\Fns; use WPML\FP\Logic; use WPML\FP\Lst; use WPML\FP\Obj; use WPML\FP\Relation; use WPML\Setup\Option; class CurrentStep implements IHandler { const STEP_TRANSLATION_SETTINGS = 'translationSettings'; const STEP_HIGH_COSTS_WARNING = 'highCostsWarning'; const STEPS = [ 'languages', 'address', 'license', 'translation', self::STEP_TRANSLATION_SETTINGS, self::STEP_HIGH_COSTS_WARNING, 'pauseTranslateEverything', 'support', 'plugins', 'finished' ]; public function run( Collection $data ) { $isValid = Logic::allPass( [ Lst::includes( Fns::__, self::STEPS ), Logic::ifElse( Relation::equals( 'languages' ), Fns::identity(), Fns::always( ! empty( Option::getTranslationLangs() ) ) ), ] ); return Either::fromNullable( Obj::prop( 'currentStep', $data ) ) ->filter( $isValid ) ->map( [ Option::class, 'saveCurrentStep' ] ); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка