Making WordPress.org


Ignore:
Timestamp:
03/08/2017 05:58:47 PM (7 years ago)
Author:
coffee2code
Message:

Rosetta Roles: Link the username of the current user on cross-locale PTEs 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-cross-locale-pte.php

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