WordPress.org

Make WordPress Core

Changeset 11765


Ignore:
Timestamp:
08/02/2009 02:24:43 AM (11 years ago)
Author:
azaozz
Message:

More cap checks, for 2.8

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

Legend:

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

    r11609 r11765  
    66 * @subpackage Administration
    77 */
     8
     9if ( !current_user_can('manage_categories') )
     10    wp_die(__('You do not have sufficient permissions to edit categories for this blog.'));
    811
    912/**
  • branches/2.8/wp-admin/edit-link-category-form.php

    r11609 r11765  
    66 * @subpackage Administration
    77 */
     8
     9if ( !current_user_can('manage_categories') )
     10    wp_die(__('You do not have sufficient permissions to edit link categories for this blog.'));
    811
    912/**
  • branches/2.8/wp-admin/edit-tag-form.php

    r11609 r11765  
    66 * @subpackage Administration
    77 */
     8
     9if ( !current_user_can('manage_categories') )
     10    wp_die(__('You do not have sufficient permissions to edit tags for this blog.'));
    811
    912if ( empty($tag_ID) ) { ?>
  • branches/2.8/wp-admin/export.php

    r11380 r11765  
    99/** Load WordPress Bootstrap */
    1010require_once ('admin.php');
     11
     12if ( !current_user_can('edit_files') )
     13    wp_die(__('You do not have sufficient permissions to export the content of this blog.'));
    1114
    1215/** Load WordPress export API */
  • branches/2.8/wp-admin/import.php

    r11380 r11765  
    99/** Load WordPress Bootstrap */
    1010require_once ('admin.php');
     11
     12if ( !current_user_can('edit_files') )
     13    wp_die(__('You do not have sufficient permissions to import content in this blog.'));
     14
    1115$title = __('Import');
    1216require_once ('admin-header.php');
  • branches/2.8/wp-admin/link-add.php

    r9620 r11765  
    99/** Load WordPress Administration Bootstrap */
    1010require_once('admin.php');
     11
     12if ( ! current_user_can('manage_links') )
     13    wp_die(__('You do not have sufficient permissions to add links to this blog.'));
    1114
    1215$title = __('Add New Link');
Note: See TracChangeset for help on using the changeset viewer.