mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-05 17:00:03 +00:00
I18N: Merge duplicate strings in notifications displayed when a new user has been created or added to the site.
Props ramiy. Fixes #35746. git-svn-id: https://develop.svn.wordpress.org/trunk@45542 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -86,12 +86,17 @@ if ( isset( $_GET['update'] ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( empty( $edit_link ) ) {
|
||||
$messages[] = __( 'User added.' );
|
||||
} else {
|
||||
/* translators: %s: edit page url */
|
||||
$messages[] = sprintf( __( 'User added. <a href="%s">Edit user</a>' ), $edit_link );
|
||||
$message = __( 'User added.' );
|
||||
|
||||
if ( $edit_link ) {
|
||||
$message .= sprintf(
|
||||
' <a href="%s">%s</a>',
|
||||
$edit_link,
|
||||
__( 'Edit user' )
|
||||
);
|
||||
}
|
||||
|
||||
$messages[] = $message;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user