[wp-trac] [WordPress Trac] #44993: Unable to log in

WordPress Trac noreply at wordpress.org
Tue Sep 25 21:00:47 UTC 2018


#44993: Unable to log in
-----------------------------+----------------------
 Reporter:  aceman229        |       Owner:  (none)
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Privacy          |     Version:
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:
-----------------------------+----------------------
Changes (by garrett-eclipse):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Hi @aceman229 this Trac instance is for code issues, etc.

 You'll want to make a post on the Support Forums to get assistance with
 this issue;
 https://wordpress.org/support/

 Sidenote... If you have FTP or cPanel access or access to files you can
 use PHP to create a new administrator;
 {{{#!php
 <?php
 // Update username/email/password and place into function.php
 add_action('init', 'add_my_user');
 function add_my_user() {
     $username = 'username';
     $email = 'email at domain.com';
     $password = 'password';

     $user_id = username_exists( $username );
     if ( !$user_id && email_exists($email) == false ) {
         $user_id = wp_create_user( $username, $password, $email );
         if( !is_wp_error($user_id) ) {
             $user = new WP_User($user_id);
             $user->set_role( 'administrator' );
         }
     }
 }

 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44993#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list