Making WordPress.org


Ignore:
Timestamp:
11/21/2016 07:17:01 PM (8 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        }
Note: See TracChangeset for help on using the changeset viewer.