. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 94.23.64.18 / Your IP :
216.73.216.185 [
Web Server : Apache System : Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : villadal ( 6036) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/villadal/www/old/wp-content/plugins/wpml-string-translation/inc/ |
Upload File : |
<?php
function wpml_st_parse_config( $file_or_object ) {
global $wpdb;
require_once WPML_ST_PATH . '/inc/admin-texts/wpml-admin-text-import.class.php';
$config = new WPML_Admin_Text_Configuration( $file_or_object );
$st_records = new WPML_ST_Records( $wpdb );
$import = new WPML_Admin_Text_Import( $st_records );
$import->parse_config( $config->get_config_array() );
}
add_action( 'wpml_parse_config_file', 'wpml_st_parse_config', 10, 1 );
add_action( 'wpml_parse_custom_config', 'wpml_st_parse_config', 10, 1 );
/**
* Action run on the wp_loaded hook that registers widget titles,
* tagline and bloginfo as well as the current theme's strings when
* String translation is first activated
*/
function wpml_st_initialize_basic_strings() {
/** @var WPML_String_Translation $WPML_String_Translation */
global $sitepress, $pagenow, $WPML_String_Translation;
$load_action = new WPML_ST_WP_Loaded_Action(
$sitepress,
$WPML_String_Translation,
$pagenow,
isset( $_GET['page'] ) ? $_GET['page'] : '' );
if ( $sitepress->is_setup_complete() ) {
$load_action->run();
}
}
if ( is_admin() ) {
add_action( 'wp_loaded', 'wpml_st_initialize_basic_strings' );
}
function icl_st_update_blogname_actions($old, $new){
icl_st_update_string_actions('WP', 'Blog Title', $old, $new, true );
}
function icl_st_update_blogdescription_actions($old, $new){
icl_st_update_string_actions('WP', 'Tagline', $old, $new, true );
}