[wp-trac] Re: [WordPress Trac] #2526: WP DB Backup plugin is using $user_level instead of capabilities

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 25 16:42:00 GMT 2006

#2526: WP DB Backup plugin is using $user_level instead of capabilities
       Id:  2526            |      Status:  assigned                
Component:  Administration  |    Modified:  Sat Mar 25 16:41:59 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  robmiller       |    Reporter:  markjaquith             
Comment (by MichaelH):

 With svn at 3658, 2626.3.diff installed, Role Manager plugin
 http://redalt.com/wiki/Role+Manager installed:

 Assign Subscriber, Contributer, Author, or Editor the Manage Option
 capability and they don't see the Manage->Backup menu choice.

 Create a user, give them the Administrator role, then delete the Manage
 Options capability from that user.  That user can see the Manage->Backup
 menu, they can select the backup options and click on Backup! button, it
 displays the screen with the empty progress bar and just sits there--no
 error or insufficient permissions message shows.

 Noticed that at lines 325 and 329 in wp-db-backup.php, user level 9 gets
 passed to the add_management_page function.  Not sure what that means for
 this ticket--meaning can you can pass a "capability" to functions such as
 add_management_page, or do those functions need to be revised to handle

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

More information about the wp-trac mailing list