- fixed PHP notice for $cached_user variable;

This commit is contained in:
Mykyta Synelnikov
2023-09-04 13:24:28 +03:00
parent 6e9d122494
commit 4e1e577a21
+8 -3
View File
@@ -1,9 +1,9 @@
<?php
namespace um\core;
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'um\core\User' ) ) {
@@ -80,6 +80,11 @@ if ( ! class_exists( 'um\core\User' ) ) {
public $updating_process = false;
/**
* @var array
*/
public $cached_user = array();
/**
* User constructor.
*/