/
home
/
vianto5
/
cititower.mx
/
wp-content
/
plugins
/
sitepress-multilingual-cms
/
inc
/
/home/vianto5/cititower.mx/wp-content/plugins/sitepress-multilingual-cms/inc
mkdir
upload
Name
Size
Mode
Actions
absolute-links/
-
0755
rm
actions/
-
0755
rm
core/
-
0755
rm
hacks/
-
0755
rm
local-translation/
-
0755
rm
post-translation/
-
0755
rm
query-filtering/
-
0755
rm
setup/
-
0755
rm
taxonomy-term-translation/
-
0755
rm
tools/
-
0755
rm
translation-jobs/
-
0755
rm
translation-management/
-
0755
rm
translation-proxy/
-
0755
rm
upgrade-functions/
-
0755
rm
url-handling/
-
0755
rm
utilities/
-
0755
rm
wp-nav-menus/
-
0755
rm
wpml-config/
-
0755
rm
cache.php
4448
0644
edit
dl
rm
constants-tm.php
1366
0644
edit
dl
rm
constants.php
6695
0644
edit
dl
rm
deprecated-hooks.php
261
0644
edit
dl
rm
functions-debug-information.php
122
0644
edit
dl
rm
functions-helpers.php
1190
0644
edit
dl
rm
functions-load-tm.php
26044
0644
edit
dl
rm
functions-load.php
14242
0644
edit
dl
rm
functions-network.php
4163
0644
edit
dl
rm
functions-sanitation.php
1954
0644
edit
dl
rm
functions-security.php
2242
0644
edit
dl
rm
functions-troubleshooting.php
6971
0644
edit
dl
rm
functions.php
28121
0644
edit
dl
rm
hacks.php
982
0644
edit
dl
rm
icl-admin-notifier.php
29098
0644
edit
dl
rm
import-xml.php
1475
0644
edit
dl
rm
js-scripts.php
707
0644
edit
dl
rm
js-tm-scripts.php
3207
0644
edit
dl
rm
lang-data.php
9038
0644
edit
dl
rm
language-switcher.php
2416
0644
edit
dl
rm
not-compatible-plugins.php
2049
0644
edit
dl
rm
plugin-integration-nextgen.php
1854
0644
edit
dl
rm
plugins-integration.php
2070
0644
edit
dl
rm
template-functions.php
48587
0644
edit
dl
rm
upgrade.php
10337
0644
edit
dl
rm
wpml-api.php
19748
0644
edit
dl
rm
wpml-post-comments.class.php
6487
0644
edit
dl
rm
wpml-post-edit-ajax.class.php
13370
0644
edit
dl
rm
wpml-private-actions-tm.php
3572
0644
edit
dl
rm
wpml-private-actions.php
4482
0644
edit
dl
rm
wpml-private-filters.php
1049
0644
edit
dl
rm
wpml_load_request_handler.php
1547
0644
edit
dl
rm
wpml_zip.php
23598
0644
edit
dl
rm
Edit:
/home/vianto5/cititower.mx/wp-content/plugins/sitepress-multilingual-cms/inc/import-xml.php
(1475B)
<?php global $pagenow; $filtered_import = filter_input( INPUT_GET, 'import',FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); $filtered_step = filter_input( INPUT_GET, 'step',FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_NULL_ON_FAILURE ); if ($pagenow == 'admin.php' && 0 === strcmp( $filtered_import, 'wordpress' ) && $filtered_step == 1 ) { add_action('admin_head', 'icl_import_xml'); } function icl_import_xml() { global $sitepress; $langs = $sitepress->get_active_languages(); if (empty($langs)) { return; } $default = $sitepress->get_default_language(); $out = '<h3>' . esc_html__('Select Language', 'sitepress') . '</h3><p><select name="icl_post_language">'; foreach ($langs as $lang) { $out .= '<option value="' . esc_attr( $lang['code'] ) . '"'; if ($default == $lang['code']) { $out .= ' selected="selected"'; } $out .= '>' . esc_html( $lang['native_name'] ) . '<\/option>'; } $out .= '<\/select><\/p>'; echo ' <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#wpbody-content").find("form .submit").before(\'' . $out . '\'); }); </script> '; } add_action('import_start', 'icl_import_xml_start', 0); function icl_import_xml_start() { set_time_limit( 0 ); $post_languages = isset( $_POST['icl_post_language'] ) ? $_POST['icl_post_language'] : array(); $_POST['icl_tax_post_tag_language'] = $_POST['icl_tax_category_language'] = $_POST['icl_tax_language'] = $post_languages; }
Save
cmd:
run