[wp-trac] Re: [WordPress Trac] #4292: wp_widgets_add_menu() checks for edit_themes instead of switch_themes

WordPress Trac wp-trac at lists.automattic.com
Sat May 19 22:23:28 GMT 2007


#4292: wp_widgets_add_menu() checks for edit_themes instead of switch_themes
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  rob1n   
     Type:  defect             |       Status:  reopened
 Priority:  normal             |    Milestone:  2.2.1   
Component:  Administration     |      Version:  2.2     
 Severity:  trivial            |   Resolution:          
 Keywords:                     |  
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 you've missed the first few lines of wp-admin/widgets.php

 should be:

 {{{
 if ( ! current_user_can('switch_themes') )
         wp_die( __( 'Cheatin’ uh?' ));
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4292#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list