Making WordPress.org


Ignore:
Timestamp:
07/07/2021 04:34:37 AM (3 years ago)
Author:
dd32
Message:

Trac: Swap to using the newer URL syntax of the Trac class.

Follow up to [11099].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/dotorg/slack/trac-bot.php

    r11099 r11100  
    9797        }
    9898
    99         $trac_xmlrpc = new \Trac( 'slackbot', SLACKBOT_WPORG_PASSWORD, "$trac.trac.wordpress.org", '/login/xmlrpc', 443, true );
     99        $trac_xmlrpc = new \Trac( 'slackbot', SLACKBOT_WPORG_PASSWORD, "https://$trac.trac.wordpress.org/login/xmlrpc" );
     100
    100101        $comment = sprintf( $comment_template, $_POST['channel_name'], $_POST['user_name'], str_replace( '.', '', $_POST['timestamp'] ) );
    101102        foreach ( $results['ticket'] as $ticket ) {
Note: See TracChangeset for help on using the changeset viewer.