WordPress.org

Make WordPress Core

Changeset 37998


Ignore:
Timestamp:
07/07/2016 10:53:00 AM (4 years ago)
Author:
ocean90
Message:

Import: Merge two similar strings.

Props ramiy.
See #34521.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

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

    r37914 r37998  
    272272    $importer = $_GET['import'];
    273273
    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    }
    276277
    277278    if ( validate_file($importer) ) {
  • trunk/src/wp-admin/import.php

    r37914 r37998  
    1212require_once( dirname( __FILE__ ) . '/admin.php' );
    1313
    14 if ( !current_user_can('import') )
    15     wp_die(__('Sorry, you are not allowed to import content in this site.'));
     14if ( ! current_user_can( 'import' ) ) {
     15    wp_die( __( 'Sorry, you are not allowed to import content.' ) );
     16}
    1617
    1718$title = __('Import');
Note: See TracChangeset for help on using the changeset viewer.