Changeset 14435
- Timestamp:
- 04/28/2025 04:48:46 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/lib/class-trac.php
r14431 r14435 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, false, false, 60 );37 $this->rpc = new WP_HTTP_IXR_Client( $host, false, false, 90 ); 38 38 39 39 $http_basic_auth = 'Basic '; … … 163 163 164 164 $ok = call_user_func_array( [ $this->rpc, 'query' ], $args ); 165 166 // Don't retry on creation tasks, if it's a HTTP timeout. Retry on other errors. 167 if ( 168 ! $ok && 169 str_contains( $this->rpc->error->message, 'Operation timed out' ) && 170 ( 171 str_contains( $args[0], 'create' ) || 172 str_contains( $args[0], 'update' ) 173 ) 174 ) { 175 break; 176 } 165 177 } 166 178
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)