I18N: Use consistent error messages when importing or exporting content.
Props ramiy. Fixes #42269. git-svn-id: https://develop.svn.wordpress.org/trunk@45440 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e1cc160ba9
commit
3820ae932b
@ -293,7 +293,7 @@ if ( isset( $plugin_page ) ) {
|
||||
$importer = $_GET['import'];
|
||||
|
||||
if ( ! current_user_can( 'import' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to import content.' ) );
|
||||
wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) );
|
||||
}
|
||||
|
||||
if ( validate_file( $importer ) ) {
|
||||
|
@ -12,7 +12,7 @@ define( 'WP_LOAD_IMPORTERS', true );
|
||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||
|
||||
if ( ! current_user_can( 'import' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to import content.' ) );
|
||||
wp_die( __( 'Sorry, you are not allowed to import content into this site.' ) );
|
||||
}
|
||||
|
||||
$title = __( 'Import' );
|
||||
|
Loading…
Reference in New Issue
Block a user