Ticket #4292 (closed defect (bug): fixed)
wp_widgets_add_menu() checks for edit_themes instead of switch_themes
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.2.1 |
| Component: | Administration | Version: | 2.2 |
| Severity: | trivial | Keywords: | |
| Cc: |
Description
Change History
- Owner changed from anonymous to rob1n
- Status changed from new to assigned
- Status changed from assigned to closed
- Resolution set to fixed
- Status changed from closed to reopened
- Resolution fixed deleted
you've missed the first few lines of wp-admin/widgets.php
should be:
if ( ! current_user_can('switch_themes') )
wp_die( __( 'Cheatin’ uh?' ));
Note: See
TracTickets for help on using
tickets.

IMO it should be edit_themes. Technically you're editing the theme, not switching the theme. Or am I missing something else?