??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/pgtankstorage.sg/wp-content/plugins/polylang/src/olt-manager.php
⬅ Kembali
<?php
/**
* @package Polylang
*/
/**
* It is best practice that plugins do nothing before `plugins_loaded` is fired.
* So it is what Polylang intends to do.
* But some plugins load their textdomain as soon as loaded, thus before `plugins_loaded` is fired.
* This class defers textdomain loading until the language is defined either in a `plugins_loaded` action
* or in a `wp` action (when the language is set from content on frontend).
*
* @since 1.2
*/
class PLL_OLT_Manager {
/**
* Singleton instance
*
* @var PLL_OLT_Manager|null
*/
protected static $instance;
/**
* Constructor: setups relevant filters.
*
* @since 1.2
*/
public function __construct() {
// Allows Polylang to be the first plugin loaded ;-)
add_filter( 'pre_update_option_active_plugins', array( $this, 'make_polylang_first' ) );
add_filter( 'pre_update_option_active_sitewide_plugins', array( $this, 'make_polylang_first' ) );
// Overriding load text domain only on front since WP 4.7.
if ( ( is_admin() && ! Polylang::is_ajax_on_front() ) || Polylang::is_rest_request() ) {
return;
}
// Filters for text domain management.
add_filter( 'load_textdomain_mofile', '__return_empty_string' );
// Loads text domains.
add_action( 'pll_language_defined', array( $this, 'load_textdomains' ), 2 ); // After PLL_Frontend::pll_language_defined.
add_action( 'pll_no_language_defined', array( $this, 'load_textdomains' ) );
}
/**
* Access to the single instance of the class
*
* @since 1.7
*
* @return PLL_OLT_Manager
*/
public static function instance() {
if ( empty( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Loads textdomains.
*
* @since 0.1
*
* @return void
*/
public function load_textdomains() {
// Our load_textdomain_mofile filter has done its job. let's remove it to enable translation.
remove_filter( 'load_textdomain_mofile', '__return_empty_string' );
$GLOBALS['l10n'] = array();
$new_locale = get_locale();
load_default_textdomain( $new_locale );
// Act only if the language has not been set early (before default textdomain loading and $wp_locale creation).
if ( ! empty( $GLOBALS['wp_locale'] ) ) {
// Reinitializes wp_locale for weekdays and months.
unset( $GLOBALS['wp_locale'] );
$GLOBALS['wp_locale'] = new WP_Locale();
}
if ( ! empty( $GLOBALS['wp_locale_switcher'] ) ) {
/** This action is documented in wp-includes/class-wp-locale-switcher.php */
do_action( 'change_locale', $new_locale );
}
do_action_deprecated( 'pll_translate_labels', array(), '3.7', 'change_locale' );
}
/**
* Allows Polylang to be the first plugin loaded ;-).
*
* @since 1.2
*
* @param string[] $plugins List of active plugins.
* @return string[] List of active plugins.
*/
public function make_polylang_first( $plugins ) {
if ( $key = array_search( POLYLANG_BASENAME, $plugins ) ) {
unset( $plugins[ $key ] );
array_unshift( $plugins, POLYLANG_BASENAME );
}
return $plugins;
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
📁 Capabilities
dir
—
2026-06-17 21:10
📁 Model
dir
—
2026-06-17 21:10
📁 Options
dir
—
2026-06-17 21:10
📁 admin
dir
—
2026-06-17 21:10
📁 frontend
dir
—
2026-06-17 21:10
📁 install
dir
—
2026-06-17 21:10
📁 integrations
dir
—
2026-06-17 21:10
📁 modules
dir
—
2026-06-17 21:10
📁 settings
dir
—
2026-06-17 21:10
🐘 api.php
php
21.8 KB
2026-06-17 21:10
🐘 base.php
php
6.1 KB
2026-06-17 21:10
🐘 cache.php
php
2.4 KB
2026-06-17 21:10
🐘 class-polylang.php
php
8.3 KB
2026-06-17 21:10
🐘 constant-functions.php
php
1.8 KB
2026-06-17 21:10
🐘 cookie.php
php
3 KB
2026-06-17 21:10
🐘 crud-posts.php
php
14.7 KB
2026-06-17 21:10
🐘 crud-terms.php
php
8.8 KB
2026-06-17 21:10
🐘 default-term.php
php
6.4 KB
2026-06-17 21:10
🐘 filter-rest-routes.php
php
5 KB
2026-06-17 21:10
🐘 filters-links.php
php
5.6 KB
2026-06-17 21:10
🐘 filters-sanitization.php
php
3.2 KB
2026-06-17 21:10
🐘 filters-widgets-options.php
php
2.6 KB
2026-06-17 21:10
🐘 filters.php
php
12.9 KB
2026-06-17 21:10
🐘 format-util.php
php
3 KB
2026-06-17 21:10
🐘 functions.php
php
5.1 KB
2026-06-17 21:10
🐘 language-deprecated.php
php
7.1 KB
2026-06-17 21:10
🐘 language-factory.php
php
9.4 KB
2026-06-17 21:10
🐘 language.php
php
18.1 KB
2026-06-17 21:10
🐘 license.php
php
9.4 KB
2026-06-17 21:10
🐘 links-abstract-domain.php
php
3.2 KB
2026-06-17 21:10
🐘 links-default.php
php
3 KB
2026-06-17 21:10
🐘 links-directory.php
php
9.5 KB
2026-06-17 21:10
🐘 links-domain.php
php
2.9 KB
2026-06-17 21:10
🐘 links-model.php
php
6.5 KB
2026-06-17 21:10
🐘 links-permalinks.php
php
5.6 KB
2026-06-17 21:10
🐘 links-subdomain.php
php
2.2 KB
2026-06-17 21:10
🐘 links.php
php
1.4 KB
2026-06-17 21:10
🐘 mo.php
php
3.4 KB
2026-06-17 21:10
🐘 model.php
php
23 KB
2026-06-17 21:10
🐘 nav-menu.php
php
4.5 KB
2026-06-17 21:10
🐘 olt-manager.php
php
3 KB
2026-06-17 21:10
🐘 query.php
php
7.7 KB
2026-06-17 21:10
🐘 rest-request.php
php
4.2 KB
2026-06-17 21:10
🐘 static-pages.php
php
6.3 KB
2026-06-17 21:10
🐘 switcher.php
php
11 KB
2026-06-17 21:10
🐘 term-slug.php
php
4.9 KB
2026-06-17 21:10
🐘 translatable-object-with-types-interface.php
php
1 KB
2026-06-17 21:10
🐘 translatable-object-with-types-trait.php
php
2 KB
2026-06-17 21:10
🐘 translatable-object.php
php
17.6 KB
2026-06-17 21:10
🐘 translatable-objects.php
php
3.7 KB
2026-06-17 21:10
🐘 translate-option.php
php
13.1 KB
2026-06-17 21:10
🐘 translated-object.php
php
18.9 KB
2026-06-17 21:10
🐘 translated-post.php
php
17.2 KB
2026-06-17 21:10
🐘 translated-term.php
php
14.8 KB
2026-06-17 21:10
🐘 walker-dropdown.php
php
3.8 KB
2026-06-17 21:10
🐘 walker-list.php
php
2.5 KB
2026-06-17 21:10
🐘 walker.php
php
2.4 KB
2026-06-17 21:10
🐘 widget-calendar.php
php
11.6 KB
2026-06-17 21:10
🐘 widget-languages.php
php
5.3 KB
2026-06-17 21:10