PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
inc
<?php use WPML\Language\Detection\CookieLanguage; use WPML\Language\Detection\Frontend; use WPML\Language\Detection\Backend; use WPML\Language\Detection\Rest; use WPML\Language\Detection\Ajax; use function WPML\Container\make; function wpml_load_request_handler( $is_admin, $active_language_codes, $default_language ) { /** * @var WPML_Request $wpml_request_handler * @var WPML_URL_Converter $wpml_url_converter */ global $wpml_request_handler, $wpml_url_converter; $cookieLanguage = new CookieLanguage( new WPML_Cookie(), $default_language ); $rest_request_analyze = make( \WPML_REST_Request_Analyze::class ); $createBackend = function () use ( $wpml_url_converter, $active_language_codes, $default_language, $cookieLanguage ) { return new Backend( $wpml_url_converter, $active_language_codes, $default_language, $cookieLanguage ); }; if ( $rest_request_analyze->is_rest_request() ) { $wpml_request_handler = new Rest( $wpml_url_converter, $active_language_codes, $default_language, $cookieLanguage, $createBackend() ); } elseif ( $is_admin ) { if ( wpml_is_ajax() ) { $wpml_request_handler = new Ajax( $wpml_url_converter, $active_language_codes, $default_language, $cookieLanguage ); } else { $wpml_request_handler = $createBackend(); } } else { $wpml_request_handler = new Frontend( $wpml_url_converter, $active_language_codes, $default_language, $cookieLanguage, new WPML_WP_API() ); } return $wpml_request_handler; }
[-] constants.php
[edit]
[-] functions-helpers.php
[edit]
[-] functions-load.php
[edit]
[-] plugins-integration.php
[edit]
[-] functions-sanitation.php
[edit]
[-] lang-data.php
[edit]
[-] template-functions.php
[edit]
[-] import-xml.php
[edit]
[+]
utilities
[+]
absolute-links
[-] ajax.php
[edit]
[-] wpml-post-edit-ajax.class.php
[edit]
[-] functions-troubleshooting.php
[edit]
[-] hacks.php
[edit]
[-] functions-network.php
[edit]
[-] functions-security.php
[edit]
[-] cache.php
[edit]
[+]
tools
[-] wpml-private-actions.php
[edit]
[-] functions.php
[edit]
[+]
translation-jobs
[+]
hacks
[+]
wpml-config
[-] wpml-api.php
[edit]
[+]
local-translation
[-] wpml-private-filters.php
[edit]
[+]
translation-proxy
[-] wpml-private-actions-tm.php
[edit]
[+]
taxonomy-term-translation
[+]
setup
[-] wpml_zip.php
[edit]
[-] language-switcher.php
[edit]
[-] wpml-post-comments.class.php
[edit]
[+]
url-handling
[-] functions-load-tm.php
[edit]
[-] plugin-integration-nextgen.php
[edit]
[-] js-scripts.php
[edit]
[+]
query-filtering
[-] constants-tm.php
[edit]
[+]
translation-management
[-] js-tm-scripts.php
[edit]
[-] upgrade.php
[edit]
[+]
upgrade-functions
[+]
..
[-] icl-admin-notifier.php
[edit]
[-] not-compatible-plugins.php
[edit]
[-] deprecated-hooks.php
[edit]
[+]
actions
[-] functions-debug-information.php
[edit]
[+]
core
[+]
wp-nav-menus
[+]
post-translation
[-] wpml_load_request_handler.php
[edit]