Making WordPress.org

Changeset 14674


Ignore:
Timestamp:
03/04/2026 04:49:12 AM (3 months ago)
Author:
dd32
Message:

Trac: Fix JS error on /changeset resulting in Tickets menu not loading in overlay.

Props hbhalodia, dd32.
Fixes #8183.
Closes https://github.com/WordPress/wordpress.org/pull/556.

Location:
sites/trunk
Files:
2 edited

Legend:

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

    r14612 r14674  
    55
    66<?python
    7     scripts_version = '232'
     7    scripts_version = '233'
    88    project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0]
    99    wporg_endpoint = 'https://make.wordpress.org/' + project_slug + '/'
  • sites/trunk/wordpress.org/public_html/style/trac/wp-trac.js

    r14554 r14674  
    17511751
    17521752                // This seems to be the easiest place to find the current Ticket ID..
    1753                 var canonical = $( 'link[rel="canonical"]' ).prop( 'href' );
    1754                 if ( canonical ) {
    1755                     ticket = canonical.match( /\/ticket\/(\d+)$/ )[1];
    1756                 }
    1757 
     1753                ticket = $( 'link[rel="canonical"]' )?.prop( 'href')?.match( /\/ticket\/(\d+)$/ )?.[1];
    17581754                if ( ! ticket ) {
    17591755                    return;
Note: See TracChangeset for help on using the changeset viewer.