Import: Merge two similar strings.
Props ramiy. See #34521. git-svn-id: https://develop.svn.wordpress.org/trunk@37998 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eff1d5f58e
commit
fb3b0a9f8b
@ -271,8 +271,9 @@ if ( isset($plugin_page) ) {
|
||||
|
||||
$importer = $_GET['import'];
|
||||
|
||||
if ( ! current_user_can('import') )
|
||||
wp_die(__('Sorry, you are not allowed to import.'));
|
||||
if ( ! current_user_can( 'import' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to import content.' ) );
|
||||
}
|
||||
|
||||
if ( validate_file($importer) ) {
|
||||
wp_redirect( admin_url( 'import.php?invalid=' . $importer ) );
|
||||
|
@ -11,8 +11,9 @@ define('WP_LOAD_IMPORTERS', true);
|
||||
/** Load WordPress Bootstrap */
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( !current_user_can('import') )
|
||||
wp_die(__('Sorry, you are not allowed to import content in this site.'));
|
||||
if ( ! current_user_can( 'import' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to import content.' ) );
|
||||
}
|
||||
|
||||
$title = __('Import');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user