I18N: Use consistent error messages when importing or exporting content.
Props ramiy. Fixes #42269. Built from https://develop.svn.wordpress.org/trunk@45440 git-svn-id: http://core.svn.wordpress.org/trunk@45251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
702f7d4e8d
commit
dd7956c674
|
@ -293,7 +293,7 @@ if ( isset( $plugin_page ) ) {
|
||||||
$importer = $_GET['import'];
|
$importer = $_GET['import'];
|
||||||
|
|
||||||
if ( ! current_user_can( '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 ) ) {
|
if ( validate_file( $importer ) ) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ define( 'WP_LOAD_IMPORTERS', true );
|
||||||
require_once( dirname( __FILE__ ) . '/admin.php' );
|
require_once( dirname( __FILE__ ) . '/admin.php' );
|
||||||
|
|
||||||
if ( ! current_user_can( '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.' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
$title = __( 'Import' );
|
$title = __( 'Import' );
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-45439';
|
$wp_version = '5.3-alpha-45440';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue