Making WordPress.org

Changeset 4396


Ignore:
Timestamp:
11/21/2016 07:17:01 PM (10 years ago)
Author:
iandunn
Message:

WordCamp Budgets Dashboard: Remove non-existant variable from log entry.

$attendee doesn't exist inside this function after the refactoring in r4364.

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  
    203203/**
    204204 * 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
    205207 */
    206208function render_badges_template() {
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/indesign-badges.php

    r4366 r4396  
    105105 *                      image was successfully retrieved.
    106106 *
    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
    108113 */
    109114function download_single_gravatar( $request_url ) {
     
    131136
    132137                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' ) );
    134139                        sleep( $retry_after );
    135140                } else {
    136                         Logger\log( 'request_failed_permenantly', compact( 'attendee', 'request_url', 'response' ) );
     141                        Logger\log( 'request_failed_permenantly', compact( 'request_url', 'response' ) );
    137142                        throw new \Exception( __( "Couldn't download all Gravatars.", 'wordcamporg' ) );
    138143                }
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-wordcamp/wordcamp-admin.php

    r3161 r4396  
    257257                $request_url      = add_query_arg( 'address', urlencode( $address ), 'https://maps.googleapis.com/maps/api/geocode/json' );
    258258                $geocode_response = json_decode( wp_remote_retrieve_body( wp_remote_get( $request_url ) ) );
     259                // todo use wcorg_redundant_remote_get
    259260
    260261                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  
    590590                $url = add_query_arg( 'q',   rawurlencode( $wpdb->prepare( 'select * from yahoo.finance.xchange where pair = %s', $from . $to ) ), $url );
    591591
     592                // todo use wcorg_redundant_remote_get
    592593                $request = wp_remote_get( esc_url_raw( $url ) );
    593594                $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  
    33 * Plugin Name: WordCamp.org QBO Client
    44 */
     5
     6// todo use wcorg_redundant_remote_get for all the calls in this file
    57
    68use WordCamp\Logger;
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php

    r3760 r4396  
    33 * Plugin Name: WordCamp.org QBO Integration
    44 */
     5
     6// todo use wcorg_redundant_remote_get for all the calls in this file
    57
    68use WordCamp\Logger;
Note: See TracChangeset for help on using the changeset viewer.