WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/15/2019 06:56:47 PM (2 years ago)
Author:
SergeyBiryukov
Message:

I18N: Merge duplicate strings in notifications displayed when a new user has been created or added to the site.

Props ramiy.
Fixes #35746.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/user-new.php

    r45416 r45542  
    8787        }
    8888
    89         if ( empty( $edit_link ) ) {
    90             $messages[] = __( 'User added.' );
    91         } else {
    92             /* translators: %s: edit page url */
    93             $messages[] = sprintf( __( 'User added. <a href="%s">Edit user</a>' ), $edit_link );
     89        $message = __( 'User added.' );
     90
     91        if ( $edit_link ) {
     92            $message .= sprintf(
     93                ' <a href="%s">%s</a>',
     94                $edit_link,
     95                __( 'Edit user' )
     96            );
    9497        }
     98
     99        $messages[] = $message;
    95100    }
    96101}
Note: See TracChangeset for help on using the changeset viewer.