This commit is contained in:
2025-11-18 16:39:33 +00:00
parent c70394d367
commit df1f90c6cd
9673 changed files with 3464697 additions and 34 deletions
@@ -0,0 +1,28 @@
<?php
// phpcs:ignoreFile
/**
* The Third Party integration with User Switching.
*
* @since 3.0
*/
namespace LiteSpeed\Thirdparty;
defined('WPINC') || exit();
class User_Switching {
public static function detect() {
if (!class_exists('user_switching')) {
return;
}
/**
* Register switch back URL nonce
*
* @since 3.0 @Robert Staddon
*/
if (function_exists('current_user_switched') && ($old_user = current_user_switched())) {
do_action('litespeed_nonce', 'switch_to_olduser_' . $old_user->ID);
}
}
}