Changeset 4396
- Timestamp:
- 11/21/2016 07:17:01 PM (8 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/html-badges.php
r4360 r4396 203 203 /** 204 204 * Render the template for HTML badges 205 * 206 * @todo Need some way of detecting failed HTTP requests for Gravatars and retrying them, like InDesign badges does 205 207 */ 206 208 function render_badges_template() { -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/indesign-badges.php
r4366 r4396 105 105 * image was successfully retrieved. 106 106 * 107 * @throws \Exception when the HTTP failed even after multiple attempts 107 * @todo If have any problems with downloads failing permenantly, can try doing `str_replace()` on `$request_url` 108 * in order to change the `size` parameter to `512`. 109 * 110 * @todo Update this to use wcorg_redundant_remote_get() instead, for DRYness 111 * 112 * @throws \Exception when the HTTP request fails 108 113 */ 109 114 function download_single_gravatar( $request_url ) { … … 131 136 132 137 if ( $attempt_count < 3 ) { 133 Logger\log( 'request_failed_temporarily', compact( ' attendee', 'request_url', 'response', 'attempt_count', 'retry_after' ) );138 Logger\log( 'request_failed_temporarily', compact( 'request_url', 'response', 'attempt_count', 'retry_after' ) ); 134 139 sleep( $retry_after ); 135 140 } else { 136 Logger\log( 'request_failed_permenantly', compact( ' attendee', 'request_url', 'response' ) );141 Logger\log( 'request_failed_permenantly', compact( 'request_url', 'response' ) ); 137 142 throw new \Exception( __( "Couldn't download all Gravatars.", 'wordcamporg' ) ); 138 143 } -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php
r3161 r4396 257 257 $request_url = add_query_arg( 'address', urlencode( $address ), 'https://maps.googleapis.com/maps/api/geocode/json' ); 258 258 $geocode_response = json_decode( wp_remote_retrieve_body( wp_remote_get( $request_url ) ) ); 259 // todo use wcorg_redundant_remote_get 259 260 260 261 if ( ! empty( $geocode_response->results[0]->geometry->location->lat ) ) { -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments-network/includes/wordcamp-budgets-dashboard.php
r3305 r4396 590 590 $url = add_query_arg( 'q', rawurlencode( $wpdb->prepare( 'select * from yahoo.finance.xchange where pair = %s', $from . $to ) ), $url ); 591 591 592 // todo use wcorg_redundant_remote_get 592 593 $request = wp_remote_get( esc_url_raw( $url ) ); 593 594 $body = json_decode( wp_remote_retrieve_body( $request ), true ); -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-qbo-client/wordcamp-qbo-client.php
r3760 r4396 3 3 * Plugin Name: WordCamp.org QBO Client 4 4 */ 5 6 // todo use wcorg_redundant_remote_get for all the calls in this file 5 7 6 8 use WordCamp\Logger; -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php
r3760 r4396 3 3 * Plugin Name: WordCamp.org QBO Integration 4 4 */ 5 6 // todo use wcorg_redundant_remote_get for all the calls in this file 5 7 6 8 use WordCamp\Logger;
Note: See TracChangeset
for help on using the changeset viewer.