Making WordPress.org

Changeset 11050


Ignore:
Timestamp:
06/21/2021 07:34:42 AM (4 years ago)
Author:
dd32
Message:

Trac: Replace the login link with one that goes directly to login.wordpress.org, to ensure you're returned to the same page afterwards.

See https://wordpress.slack.com/archives/C0C89GD35/p1624259898002700.
See #3821.

Location:
sites/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/site.html

    r11047 r11050  
    55
    66<?python
    7     scripts_version = '152'
     7    scripts_version = '153'
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99    wporg_endpoint = 'https://make.wordpress.org/' + project_slug + '/'
     
    114114<py:match path="div[@id='metanav']//form[@id='logout']">
    115115    <a href="https://login.wordpress.org/logout?redirect_to=$current_url_encoded">Logout</a>
     116</py:match>
     117
     118<!--! Replace login destination -->
     119<py:match path="div[@id='metanav']//a[@href='/login']">
     120    <a href="https://login.wordpress.org/?redirect_to=$current_url_encoded" class="login">Login</a>
    116121</py:match>
    117122
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css

    r10705 r11050  
    158158    top: -40px;
    159159}
    160 #metanav .first a[href$="/login"] {
     160#metanav a.login {
    161161    font-weight: bold;
    162162}
Note: See TracChangeset for help on using the changeset viewer.