WordPress.org

Making WordPress.org

Changeset 263


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

Trac: Only initialize notifications (beyond CC field hiding) if the user is authenticated. Ideally: non-authenticated users can see stars and are asked to log in when they click. see #127.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r259 r263  
    413413
    414414            function init( settings ) {
     415                $( wpTrac.hide_cc_field );
     416                if ( ! settings.authenticated ) {
     417                    return;
     418                }
    415419                endpoint = settings.endpoint;
    416420                if ( settings.ticket ) {
     
    419423                }
    420424                $( reportInit() );
    421                 $( wpTrac.hide_cc_field );
    422425            }
    423426
Note: See TracChangeset for help on using the changeset viewer.