Making WordPress.org

Changeset 9510


Ignore:
Timestamp:
02/19/2020 04:53:28 AM (7 years ago)
Author:
dd32
Message:

Trac: Expand the Github PR section by default for all users, not just authenticated ones.

See #4903.

File:
1 edited

Legend:

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

    r9340 r9510  
    15681568                                renderAddSection();
    15691569
    1570                                 if ( authenticated ) {
    1571                                         // Fetch the PRs immediately for authenciated users.
    1572                                         fetchPRs();
    1573 
    1574                                         // ..and expand the section by default.
    1575                                         container.toggleClass( 'collapsed', false );
    1576                                 } else {
    1577                                         // Not authenticated? Fetch PRs upon expanding.
    1578                                         container.find( 'h3 a' ).one( 'click', function() {
    1579                                                 fetchPRs();
    1580                                         });
    1581                                 }
     1570                                // Fetch the PRs immediately
     1571                                fetchPRs();
    15821572                        }
    15831573
    … …  
    16111601                                // Add the Pull Requests section.
    16121602                                $( '#attachments' ).append(
    1613                                         '<div id="github-prs" class="collapsed">' +
     1603                                        '<div id="github-prs">' +
    16141604                                                '<h3 class="foldable"><a id="section-pr" href="#section-pr">Pull requests <span class="trac-count hidden">(<span></span>)</span></a></h3>' +
    16151605                                                '<ul class="pull-requests">' +
Note: See TracChangeset for help on using the changeset viewer.