Файловый менеджер - Редактировать - /home/bean7936/perfect-community.com/wp-content/plugins/wp-rocket/inc/ThirdParty/Themes/ThemeResolver.php
Назад
<?php declare(strict_types=1); namespace WP_Rocket\ThirdParty\Themes; class ThemeResolver { /** * Array of themes names with compatibility classes * * @var array */ private static $compatibilities = [ 'avada', 'bridge', 'divi', 'flatsome', 'jevelin', 'minimalist_blogger', 'polygon', 'uncode', 'xstore', 'themify', 'shoptimizer', ]; /** * Return name of current theme * * @return string */ public static function get_current_theme(): string { $theme = wp_get_theme(); $template = $theme->get_template(); if ( empty( $template ) ) { return ''; } $template = strtolower( $template ); if ( ! in_array( $template, self::$compatibilities, true ) ) { return ''; } return $template; } }
| ver. 1.6 |
Github
|
.
| PHP 8.3.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка