Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/wpml-string-translation/classes/db-mappers/StringTranslations.php
Назад
<?php namespace WPML\ST\DB\Mappers; use function WPML\FP\curryN; class StringTranslations { /** * @param \wpdb $wpdb * @param int $stringId * @param string $language * * @return callable|bool */ public static function hasTranslation( $wpdb = null, $stringId = null, $language = null ) { $has = function ( \wpdb $wpdb, $stringId, $language ) { $sql = "SELECT COUNT(id) FROM {$wpdb->prefix}icl_string_translations WHERE string_id = %d AND language = %s"; /** @var string $sql */ $sql = $wpdb->prepare( $sql, $stringId, $language ); return $wpdb->get_var( $sql ) > 0; }; return call_user_func_array( curryN( 3, $has ), func_get_args() ); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка