Make WordPress Core

Changeset 15097


Ignore:
Timestamp:
06/01/2010 06:08:27 PM (15 years ago)
Author:
ryan
Message:

Use import cap. Add old edit_files cap to list of caps to shutdown if DISALLOW_FILE_EDIT. see #13681

Location:
trunk
Files:
2 edited

Legend:

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

    r14989 r15097  
    1212require_once ('admin.php');
    1313
    14 if ( !current_user_can('edit_files') )
     14if ( !current_user_can('import') )
    1515    wp_die(__('You do not have sufficient permissions to import content in this site.'));
    1616
  • trunk/wp-includes/capabilities.php

    r14782 r15097  
    997997            $caps[] = 'do_not_allow';
    998998        break;
     999    case 'edit_files':
    9991000    case 'edit_plugins':
    10001001    case 'edit_themes':
Note: See TracChangeset for help on using the changeset viewer.