WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/01/2010 06:08:27 PM (12 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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.