Making WordPress.org


Ignore:
Timestamp:
06/21/2021 07:34:42 AM (3 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.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.