WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/01/2009 09:12:17 PM (12 years ago)
Author:
ryan
Message:

Add some CYA cap checks.

File:
1 edited

Legend:

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

    r11554 r11761  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
     11
     12if ( !current_user_can('switch_themes') )
     13    wp_die( __( 'Cheatin’ uh?' ) );
    1114
    1215if ( isset($_GET['action']) ) {
Note: See TracChangeset for help on using the changeset viewer.