Import: Merge two similar strings.

Props ramiy.
See #34521.
Built from https://develop.svn.wordpress.org/trunk@37998


git-svn-id: http://core.svn.wordpress.org/trunk@37939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling
2016-07-07 10:53:28 +00:00
parent 6953feb795
commit 65eb29ad46
3 changed files with 7 additions and 5 deletions

View File

@@ -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 ) );