Opened 6 years ago
Closed 6 years ago
#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 (6)
comment:3
rob1n
— 6 years ago
- Owner changed from anonymous to rob1n
- Status changed from new to assigned
comment:5
Denis-de-Bernardy
— 6 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
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?