created plugin custer, and removed shortcodes change_id and user_infos from cipf plugin
This commit is contained in:
@@ -54,8 +54,7 @@ if (!defined('ABSPATH')) {
|
||||
*
|
||||
*/
|
||||
|
||||
class PLGNTLS_class
|
||||
{
|
||||
class PLGNTLS_class {
|
||||
/*
|
||||
* const declarations
|
||||
*
|
||||
@@ -117,7 +116,6 @@ class PLGNTLS_class
|
||||
private static $_file_name;
|
||||
private static $_root_path;
|
||||
private static $_root_url;
|
||||
private static $_backup_current_user = null;
|
||||
|
||||
private $_first_script;
|
||||
private $_first_style;
|
||||
@@ -192,26 +190,6 @@ class PLGNTLS_class
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* setter and getter for current user backup
|
||||
*
|
||||
*/
|
||||
public static function set_current_user_backup() {
|
||||
if (self::$_backup_current_user !== null)
|
||||
return;
|
||||
self::$_backup_current_user = get_current_user_id();
|
||||
}
|
||||
public static function get_current_user_backup() {
|
||||
return self::$_backup_current_user;
|
||||
}
|
||||
public static function reset_current_user_backup() {
|
||||
$backup_user = self::$_backup_current_user;
|
||||
self::$_backup_current_user = null;
|
||||
return $backup_user;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* for debug purposes
|
||||
|
||||
Reference in New Issue
Block a user