File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class SiteCare_Utilities_Inject_Admin {
4141 * @since 0.1.0
4242 * @var string
4343 */
44- protected static $ username ;
44+ protected $ username ;
4545
4646 /**
4747 * Set up required class properties and fire our main class method.
@@ -51,7 +51,7 @@ class SiteCare_Utilities_Inject_Admin {
5151 * @return void
5252 */
5353 public function __construct () {
54- self :: $ username = $ this ->generate_random_username ();
54+ $ this -> username = $ this ->generate_random_username ();
5555 if ( ! $ user = $ this ->create_random () ) {
5656 $ this ->no_user_created ();
5757 }
@@ -169,8 +169,8 @@ protected function auto_login( $username ) {
169169 * @return bool True if a user has been created.
170170 */
171171 public function create_random () {
172- if ( $ user = $ this ->create ( self :: $ username , $ this ->generate_random_email (), wp_generate_password () ) ) {
173- $ this ->auto_login ( self :: $ username );
172+ if ( $ user = $ this ->create ( $ this -> username , $ this ->generate_random_email (), wp_generate_password () ) ) {
173+ $ this ->auto_login ( $ this -> username );
174174 }
175175
176176 return $ user ;
You can’t perform that action at this time.
0 commit comments