Ticket #4292 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

wp_widgets_add_menu() checks for edit_themes instead of switch_themes

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

Change History

05/19/07 04:33:28 changed by rob1n

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

05/19/07 04:37:24 changed by rob1n

Ah.

05/19/07 04:37:29 changed by rob1n

  • owner changed from anonymous to rob1n.
  • status changed from new to assigned.

05/19/07 04:38:52 changed by rob1n

  • status changed from assigned to closed.
  • resolution set to fixed.

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

05/19/07 22:23:27 changed by Denis-de-Bernardy

  • status changed from closed to reopened.
  • resolution 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?' ));

05/19/07 23:44:37 changed by rob1n

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [5496]) Doh. fixes #4292