PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
sitepress-multilingual-cms
/
classes
<?php class WPML_Config_Update_Integrator { /** @var WPML_Config_Update_Log */ private $log; /** @var WPML_Config_Update */ private $worker; /** * @param WPML_Log $log * @param WPML_Config_Update|null $worker */ public function __construct( WPML_Log $log, WPML_Config_Update $worker = null ) { $this->log = $log; $this->worker = $worker; } /** * @return WPML_Config_Update */ public function get_worker() { if ( null === $this->worker ) { global $sitepress; $http = new WP_Http(); $this->worker = new WPML_Config_Update( $sitepress, $http, $this->log ); } return $this->worker; } /** * @param WPML_Config_Update $worker */ public function set_worker( WPML_Config_Update $worker ) { $this->worker = $worker; } public function add_hooks() { add_action( 'update_wpml_config_index', array( $this, 'update_event_cron' ) ); add_action( 'wp_ajax_update_wpml_config_index', array( $this, 'update_event_ajax' ) ); add_action( 'after_switch_theme', array( $this, 'update_event' ) ); add_action( 'activated_plugin', array( $this, 'update_event' ) ); add_action( 'wpml_setup_completed', array( $this, 'update_event' ) ); add_action( 'wpml_refresh_remote_xml_config', array( $this, 'update_event' ) ); add_action( 'wpml_loaded', array( $this, 'handle_requests' ) ); } public function handle_requests() { $action_name = WPML_XML_Config_Log_Notice::NOTICE_ERROR_GROUP . '-action'; $action_nonce = WPML_XML_Config_Log_Notice::NOTICE_ERROR_GROUP . '-nonce'; $action = array_key_exists( $action_name, $_GET ) ? $_GET[ $action_name ] : null; $nonce = array_key_exists( $action_nonce, $_GET ) ? $_GET[ $action_nonce ] : null; if ( $action && $nonce && wp_verify_nonce( $nonce, $action ) ) { if ( 'wpml_xml_update_clear' === $action ) { $this->log->clear(); wp_safe_redirect( $this->log->get_log_url(), 302, 'WPML' ); } if ( 'wpml_xml_update_refresh' === $action ) { $this->upgrader_process_complete_event(); } } } public function update_event() { $this->get_worker() ->run(); } public function upgrader_process_complete_event() { $this->get_worker() ->run(); } public function update_event_ajax() { if ( $this->get_worker() ->run() ) { echo date( 'F j, Y H:i a', time() ); } die; } public function update_event_cron() { if ( ! function_exists( 'get_plugins' ) ) { require_once ABSPATH . 'wp-admin/includes/plugin.php'; } $this->update_event(); } }
[+]
wpml-wp
[+]
ajax
[-] class-wpml-tm-translators-dropdown.php
[edit]
[+]
translation-priorities
[-] class-wpml-tm-promotions.php
[edit]
[+]
hooks
[+]
ICL-20-migration
[+]
templates
[+]
action-filter-loader
[-] class-wpml-translation-proxy-api.php
[edit]
[+]
wpml-st
[+]
utilities
[-] class-wpml-tm-translated-field.php
[edit]
[+]
requirements
[+]
sticky-posts
[-] class-wpml-tm-page.php
[edit]
[+]
icl
[+]
display-as-translated
[+]
custom-field-translation
[+]
language
[+]
ATE
[+]
shortcodes
[+]
translate_link_targets
[+]
core-abstract-classes
[+]
full-site-editing
[+]
settings
[-] class-wpml-file.php
[edit]
[+]
xliff
[+]
reset
[+]
REST-hooks
[+]
comments
[+]
plugins
[+]
templating
[+]
container
[+]
taxonomy
[+]
cookie
[-] class-wpml-tm-requirements.php
[edit]
[+]
translation-dashboard
[+]
helpers
[+]
translation-feedback
[+]
admin-language-switcher
[-] class-wpml-tm-troubleshooting-clear-ts.php
[edit]
[+]
jobs
[+]
compatibility
[+]
wp-core-hooks
[+]
post-edit-screen
[-] class-wpml-tm-troubleshooting-clear-ts-ui.php
[edit]
[+]
translation-jobs
[+]
logging
[+]
roles
[+]
media
[-] class-wpml-active-plugin-provider.php
[edit]
[+]
media-translation
[-] class-wpml-config-update.php
[edit]
[+]
seo
[+]
options
[+]
Installer
[-] class-wpml-tm-ajax-factory-2.php
[edit]
[+]
automatic-translation
[+]
troubleshoot
[+]
records
[-] class-wpml-translate-independently.php
[edit]
[+]
abstract
[-] class-wpml-tm-resources-factory.php
[edit]
[+]
post-types
[+]
wp-cli
[+]
translation-proxy
[-] class-wpml-tm-loader.php
[edit]
[-] class-wpml-config-update-integrator.php
[edit]
[-] class-wpml-theme-localization-type.php
[edit]
[+]
taxonomy-term-translation
[+]
setup
[+]
language-switcher
[+]
translation-mode
[+]
jobs-deadline
[+]
database-queries
[+]
utils
[+]
translation-basket
[-] ISitePress.php
[edit]
[-] class-wpml-current-screen.php
[edit]
[-] class-wpml-tm-ajax-factory.php
[edit]
[+]
admin-bar
[+]
canonicals
[+]
custom-xml-config
[-] class-wpml-db-chunk.php
[edit]
[+]
url-handling
[+]
admin-resources
[+]
theme-plugin-localization
[+]
ui-elements
[+]
languages
[+]
wizard
[-] LanguageNegotiation.php
[edit]
[-] class-wpml-browser-redirect.php
[edit]
[+]
menu
[-] class-wpml-mo-file-search.php
[edit]
[+]
query-filtering
[+]
translation-management
[+]
filters
[-] class-wpml-xmlrpc.php
[edit]
[-] class-wpml-site-id.php
[edit]
[+]
block-editor
[+]
icl-to-ate-migration
[+]
translations
[+]
user-language
[+]
..
[+]
menu-elements
[+]
translation-batch
[-] class-wpml-tm-api.php
[edit]
[-] class-wpml-translation-management.php
[edit]
[-] class-wpml-translation-job-factory.php
[edit]
[+]
xml-config
[+]
REST
[+]
editor
[+]
admin-menu
[+]
localization
[+]
tp-client
[+]
translation-roles
[-] Geolocalization.php
[edit]
[+]
wp
[+]
API
[+]
twig-extensions
[+]
troubleshooting
[+]
privacy
[+]
user
[-] class-wpml-tm-service-activation-ajax.php
[edit]
[+]
widgets
[+]
super-globals
[+]
emails
[+]
words-count
[+]
support
[+]
post-translation
[+]
browser-language-redirect
[+]
request-handling
[+]
notices
[+]
upgrade