Make WordPress Core

Changeset 11766


Ignore:
Timestamp:
08/02/2009 11:11:54 PM (15 years ago)
Author:
ryan
Message:

Add some CYA cap checks.

Location:
branches/2.8/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-admin/edit-comments.php

    r11659 r11766  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
     11
     12if ( !current_user_can('edit_posts') )
     13    wp_die(__('Cheatin’ uh?'));
    1114
    1215wp_enqueue_script('admin-comments');
  • branches/2.8/wp-admin/edit-pages.php

    r11458 r11766  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
     11
     12if ( !current_user_can('edit_pages') )
     13    wp_die(__('Cheatin’ uh?'));
    1114
    1215// Handle bulk actions
  • branches/2.8/wp-admin/edit.php

    r11383 r11766  
    99/** WordPress Administration Bootstrap */
    1010require_once('admin.php');
     11
     12if ( !current_user_can('edit_posts') )
     13    wp_die(__('Cheatin’ uh?'));
    1114
    1215// Back-compat for viewing comments of an entry
Note: See TracChangeset for help on using the changeset viewer.