PluginProbe ʕ •ᴥ•ʔ
LiteSpeed Cache / 7.6.1
LiteSpeed Cache v7.6.1
trunk 1.0.15 1.9.1.1 2.9.9.2 3.6.4 4.6 5.7.0.1 6.5.4 7.0.0.1 7.0.1 7.1 7.2 7.3 7.3.0.1 7.4 7.5 7.5.0.1 7.6 7.6.1 7.6.2 7.7 7.8 7.8.0.1 7.8.1
litespeed-cache / thirdparty / user-switching.cls.php
litespeed-cache / thirdparty Last commit date
aelia-currencyswitcher.cls.php 7 months ago amp.cls.php 7 months ago autoptimize.cls.php 7 months ago avada.cls.php 7 months ago bbpress.cls.php 7 months ago beaver-builder.cls.php 7 months ago caldera-forms.cls.php 7 months ago divi-theme-builder.cls.php 7 months ago elementor.cls.php 7 months ago entry.inc.php 7 months ago facetwp.cls.php 7 months ago gravity-forms.cls.php 7 months ago litespeed-check.cls.php 7 months ago nextgengallery.cls.php 7 months ago perfmatters.cls.php 7 months ago theme-my-login.cls.php 7 months ago user-switching.cls.php 7 months ago wc-pdf-product-vouchers.cls.php 7 months ago wcml.cls.php 7 months ago woo-paypal.cls.php 7 months ago woocommerce.cls.php 7 months ago woocommerce.content.tpl.php 7 months ago woocommerce.tab.tpl.php 7 months ago wp-polls.cls.php 7 months ago wp-postratings.cls.php 7 months ago wpdiscuz.cls.php 7 months ago wplister.cls.php 7 months ago wpml.cls.php 7 months ago wptouch.cls.php 7 months ago yith-wishlist.cls.php 7 months ago
user-switching.cls.php
29 lines
1 <?php
2 // phpcs:ignoreFile
3 /**
4 * The Third Party integration with User Switching.
5 *
6 * @since 3.0
7 */
8 namespace LiteSpeed\Thirdparty;
9
10 defined('WPINC') || exit();
11
12 class User_Switching {
13
14 public static function detect() {
15 if (!class_exists('user_switching')) {
16 return;
17 }
18
19 /**
20 * Register switch back URL nonce
21 *
22 * @since 3.0 @Robert Staddon
23 */
24 if (function_exists('current_user_switched') && ($old_user = current_user_switched())) {
25 do_action('litespeed_nonce', 'switch_to_olduser_' . $old_user->ID);
26 }
27 }
28 }
29