mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
I18N: Restore the "Error:" prefix for error messages.
Partially reverts [48059] as there's no full consensus on the removal of the text prefix. Further actions should be taken to improve consistency and accessibility of the admin notices. Keeps some improvements to the translatable strings from [48059]. Fixes #47656. git-svn-id: https://develop.svn.wordpress.org/trunk@48115 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -401,7 +401,7 @@ function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) {
|
||||
|
||||
// Check if the domain has been used already. We should return an error message.
|
||||
if ( domain_exists($domain, $path, $site_id) )
|
||||
return __( 'Site URL you’ve entered is already taken.' );
|
||||
return __( '<strong>Error</strong>: Site URL you’ve entered is already taken.' );
|
||||
|
||||
/*
|
||||
* Need to back up wpdb table names, and create a new wp_blogs entry for new blog.
|
||||
@@ -410,7 +410,7 @@ function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) {
|
||||
*/
|
||||
|
||||
if ( ! $blog_id = insert_blog($domain, $path, $site_id) )
|
||||
return __( 'There was a problem creating site entry.' );
|
||||
return __( '<strong>Error</strong>: There was a problem creating site entry.' );
|
||||
|
||||
switch_to_blog($blog_id);
|
||||
install_blog($blog_id);
|
||||
|
||||
Reference in New Issue
Block a user