Make WordPress Core


Ignore:
Timestamp:
05/12/2010 07:19:57 PM (14 years ago)
Author:
nacin
Message:

Use the edit_theme_options capability. fixes #13290.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/widgets.php

    r14374 r14581  
    1313require_once(ABSPATH . 'wp-admin/includes/widgets.php');
    1414
    15 if ( ! current_user_can('switch_themes') )
     15if ( ! current_user_can('edit_theme_options') )
    1616    wp_die( __( 'Cheatin’ uh?' ));
    1717
Note: See TracChangeset for help on using the changeset viewer.