Changeset 13379
- Timestamp:
- 03/26/2024 08:26:09 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/lib/class-trac.php
r13378 r13379 35 35 public function __construct( $username, $password, $host, $path = '/', $port = 80, $ssl = false ) { 36 36 // 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 ); 38 38 39 39 $http_basic_auth = 'Basic '; … … 65 65 $ok = $this->rpc->query( 'ticket.create', $subj, $desc, $attr ); 66 66 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 ); 68 68 69 69 // phpcs:ignore Squiz.PHP.CommentedOutCode.Found, Squiz.Commenting.InlineComment.InvalidEndChar … … 95 95 $ok = $this->rpc->query( 'ticket.update', $id, $comment, $attr, $notify ); 96 96 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 ); 98 98 99 99 return false;
Note: See TracChangeset
for help on using the changeset viewer.