WordPress.org

Making WordPress.org

Changeset 262


Ignore:
Timestamp:
01/10/2014 05:10:27 AM (7 years ago)
Author:
nacin
Message:

Trac: Pass the authenticated status to the notifications JS. see #127.

File:
1 edited

Legend:

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

    r260 r262  
    55
    66<?python
    7     scripts_version = 30
     7    scripts_version = 31
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99    wporg_endpoint = '//make.wordpress.org/core/'
     
    269269        <script>
    270270        (function() {
    271             var settings = { endpoint: '${wporg_endpoint}' };
     271            var settings = { endpoint: '${wporg_endpoint}', authenticated: ${int(req.session['authenticated'])} };
    272272            <py:if test="ticket and ticket.exists">
    273273            settings.ticket = ${ticket.id};
Note: See TracChangeset for help on using the changeset viewer.