Changeset 14439 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/lib/class-trac.php
- Timestamp:
- 04/29/2025 01:06:56 AM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/lib/class-trac.php
r14435 r14439 63 63 } 64 64 65 $ok = $this->rpc _query_retry( 5,'ticket.create', $subj, $desc, $attr );65 $ok = $this->rpc->query( 'ticket.create', $subj, $desc, $attr ); 66 66 if ( ! $ok ) { 67 67 trigger_error( 'Trac: ticket.create: ' . $this->rpc->error->message, E_USER_WARNING ); … … 98 98 } 99 99 100 $ok = $this->rpc _query_retry( 5,'ticket.update', $id, $comment, $attr, $notify );100 $ok = $this->rpc->query( 'ticket.update', $id, $comment, $attr, $notify ); 101 101 if ( ! $ok ) { 102 102 trigger_error( 'Trac: ticket.update: ' . $this->rpc->error->message, E_USER_WARNING ); … … 115 115 */ 116 116 public function ticket_query( $search ) { 117 $ok = $this->rpc ->query('ticket.query', $search );117 $ok = $this->rpc_query_retry( 3, 'ticket.query', $search ); 118 118 if ( ! $ok ) { 119 119 return false; … … 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 }177 165 } 178 166
Note: See TracChangeset
for help on using the changeset viewer.