Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#4292 closed defect (bug) (fixed)

wp_widgets_add_menu() checks for edit_themes instead of switch_themes

Reported by: denis-de-bernardy's profile Denis-de-Bernardy Owned by: rob1n's profile rob1n
Milestone: 2.2.1 Priority: normal
Severity: trivial Version: 2.2
Component: Administration Keywords:
Focuses: Cc:

Description


Change History (6)

#1 @rob1n
17 years ago

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

#3 @rob1n
17 years ago

  • Owner changed from anonymous to rob1n
  • Status changed from new to assigned

#4 @rob1n
17 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [5492]) Check for switch_themes, not edit_themes. Props Denis de Bernardy. fixes #4292

#5 @Denis-de-Bernardy
17 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?' ));

#6 @rob1n
17 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [5496]) Doh. fixes #4292

Note: See TracTickets for help on using tickets.