[wp-trac] Re: [WordPress Trac] #2817: Admin password change problem

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 11 20:47:49 GMT 2006


#2817: Admin password change problem
----------------------------+-----------------------------------------------
       Id:  2817            |      Status:  assigned                
Component:  Administration  |    Modified:  Sun Jun 11 20:47:49 2006
 Severity:  normal          |   Milestone:                          
 Priority:  normal          |     Version:  2.1                     
    Owner:  markjaquith     |    Reporter:  markjaquith             
----------------------------+-----------------------------------------------
Changes (by markjaquith):

  * keywords:  => has-patch commit
  * status:  new => assigned
  * owner:  anonymous => markjaquith

Comment:

 Got it.  Just need to make sure {{{$role}}} is set before updating it.
 When you edit your profile, $role won't be set, so it passes.  Tested the
 uploaded patch and it works.

 If anyone was bitten by this bug, do this:

 {{{
 UPDATE your_wp_usermeta SET meta_value = 'a:1:{s:13:"administrator";b:1;}'
 WHERE meta_key = 'your_wp_capabilities' AND user_id = '1';
 }}}

 Obviously, replace {{{your_wp_usermeta}}} with your usermeta table name,
 and "1" with the user ID affected.  Then {{{rm -rf}}} your {{{/wp-
 content/cache/}}} directory.

 Thanks Owen Gray for the nice report!

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2817>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list