Making WordPress.org

Changeset 11627


Ignore:
Timestamp:
03/03/2022 02:30:35 AM (3 years ago)
Author:
dd32
Message:

Trac: Redirect two more meta.trac components to GitHub repositories.

Location:
sites/trunk
Files:
2 edited

Legend:

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

    r11614 r11627  
    55
    66<?python
    7     scripts_version = '168'
     7    scripts_version = '169'
    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

    r11612 r11627  
    9898            tracker: 'https://github.com/WordPress/openverse/issues/new/choose',
    9999            tracker_text: 'Openverse GitHub Repository',
     100        },
     101        'Global Header/Footer': {
     102            tracker: 'https://github.com/WordPress/wporg-mu-plugins/issues/new?labels=Header+%26+Footer',
     103            tracker_text: 'WordPress.org mu-plugins GitHub Repository',
     104            enable_copy: true
     105        },
     106        'News (wordpress.org/news)': {
     107            tracker: 'https://github.com/WordPress/wporg-news-2021/issues/new',
     108            tracker_text: 'WordPress.org News GitHub Repository',
     109            enable_copy: true
    100110        }
    101111    };
     
    814824                url_params[description_field] = $('#field-description').val()
    815825
    816                 url = href + '?' + $.param( url_params );
     826                url = href + ( href.indexOf( '?' ) ? '&' : '?' ) + $.param( url_params );
    817827                if ( url.length > 1500 ) {
    818828                    url_params[description_field] = '(Couldn\'t copy over your description as it was too long. Please paste it here. Your old window was not closed.)';
Note: See TracChangeset for help on using the changeset viewer.