Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#4292 closed defect (bug) (fixed)

wp_widgets_add_menu() checks for edit_themes instead of switch_themes

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

Description


Change History (6)

#1 @rob1n
19 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
19 years ago

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

#4 @rob1n
19 years ago

  • Resolution → fixed
  • Status assigned → closed

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

#5 @Denis-de-Bernardy
19 years ago

  • Resolution fixed
  • Status closed → 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
19 years ago

  • Resolution → fixed
  • Status reopened → closed

(In [5496]) Doh. fixes #4292

Note: See TracTickets for help on using tickets.