Making WordPress.org

Changeset 13379


Ignore:
Timestamp:
03/26/2024 08:26:09 AM (11 months ago)
Author:
dd32
Message:

Theme Directory: Use a longer timeout when communicating with Trac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/lib/class-trac.php

    r13378 r13379  
    3535    public function __construct( $username, $password, $host, $path = '/', $port = 80, $ssl = false ) {
    3636        // Assume URL to $host, ignore $path, $port, $ssl.
    37         $this->rpc = new WP_HTTP_IXR_Client( $host );
     37        $this->rpc = new WP_HTTP_IXR_Client( $host, false, false, 60 );
    3838
    3939        $http_basic_auth  = 'Basic ';
     
    6565        $ok = $this->rpc->query( 'ticket.create', $subj, $desc, $attr );
    6666        if ( ! $ok ) {
    67             trigger_error( 'Trac: ticket.create: ' . $this->rpc->error, E_USER_WARNING );
     67            trigger_error( 'Trac: ticket.create: ' . $this->rpc->error->message, E_USER_WARNING );
    6868
    6969            // phpcs:ignore Squiz.PHP.CommentedOutCode.Found, Squiz.Commenting.InlineComment.InvalidEndChar
     
    9595        $ok = $this->rpc->query( 'ticket.update', $id, $comment, $attr, $notify );
    9696        if ( ! $ok ) {
    97             trigger_error( 'Trac: ticket.update: ' . $this->rpc->error, E_USER_WARNING );
     97            trigger_error( 'Trac: ticket.update: ' . $this->rpc->error->message, E_USER_WARNING );
    9898
    9999            return false;
Note: See TracChangeset for help on using the changeset viewer.