public function change_string_lang_ajax_callback()
 {
     if (!$this->verify_ajax_call('wpml_change_string_language_nonce')) {
         die('verification failed');
     }
     global $wpdb, $sitepress;
     $change_string_language_dialog = new WPML_Change_String_Language_Dialog($wpdb, $sitepress);
     $response = $change_string_language_dialog->change_language_of_strings($_POST['strings'], $_POST['language']);
     wp_send_json($response);
 }
Example #2
0
        </p>
		<?php 
    if (!empty($icl_contexts)) {
        ?>
			<p><a href="#" id="wpml-language-of-domains-link"><?php 
        _e('Languages of domains', 'wpml-string-translation');
        ?>
</a></p>
		<?php 
    }
    ?>

		<?php 
    $string_translation_table_ui = new WPML_String_Translation_Table($icl_string_translations);
    $string_translation_table_ui->render();
    $change_string_language_dialog = new WPML_Change_String_Language_Dialog($wpdb, $sitepress);
    $change_string_language_dialog->render();
    if (!empty($icl_contexts)) {
        $string_factory = new WPML_ST_String_Factory($wpdb);
        $change_string_domain_language_dialog = new WPML_Change_String_Domain_Language_Dialog($wpdb, $sitepress, $string_factory);
        $change_string_domain_language_dialog->render($icl_contexts);
    }
    $get_show_results = filter_input(INPUT_GET, 'show_results', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
    $get_page = filter_input(INPUT_GET, 'page', FILTER_SANITIZE_URL);
    ?>
        <?php 
    if ($wp_query->found_posts > 10) {
        ?>
            <div class="tablenav">
            <?php 
        $paged = filter_input(INPUT_GET, 'paged', FILTER_SANITIZE_NUMBER_INT);