Changeset 37998
- Timestamp:
- 07/07/2016 10:53:00 AM (8 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin.php
r37914 r37998 272 272 $importer = $_GET['import']; 273 273 274 if ( ! current_user_can('import') ) 275 wp_die(__('Sorry, you are not allowed to import.')); 274 if ( ! current_user_can( 'import' ) ) { 275 wp_die( __( 'Sorry, you are not allowed to import content.' ) ); 276 } 276 277 277 278 if ( validate_file($importer) ) { -
trunk/src/wp-admin/import.php
r37914 r37998 12 12 require_once( dirname( __FILE__ ) . '/admin.php' ); 13 13 14 if ( !current_user_can('import') ) 15 wp_die(__('Sorry, you are not allowed to import content in this site.')); 14 if ( ! current_user_can( 'import' ) ) { 15 wp_die( __( 'Sorry, you are not allowed to import content.' ) ); 16 } 16 17 17 18 $title = __('Import');
Note: See TracChangeset
for help on using the changeset viewer.