Making WordPress.org


Ignore:
Timestamp:
03/07/2017 08:49:36 PM (8 years ago)
Author:
coffee2code
Message:

Rosetta Roles: Link the username of the current user on edit page to w.org profile.

Props SergeyBiryukov.
Fixes #2209.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/views/edit-translation-editor.php

    r2620 r5115  
    55
    66    <p><?php
     7        $user = get_user_by( 'id', $user_id );
    78        printf(
    8             /* translators: %s: username */
    9             __( 'You are currently editing the user %s.', 'rosetta' ),
    10             '<em>' . get_user_by( 'id', $user_id )->user_login . '</em>'
     9            /* translators: 1: WP.org profile URL, 2: username */
     10            __( 'You are currently editing the user <a href="%1$s">%2$s</a>.', 'rosetta' ),
     11            'https://profiles.wordpress.org/' . $user->user_nicename,
     12            '<em>' . $user->user_login . '</em>'
    1113        );
    1214    ?></p>
Note: See TracChangeset for help on using the changeset viewer.