Making WordPress.org


Ignore:
Timestamp:
11/29/2018 03:19:31 AM (6 years ago)
Author:
iandunn
Message:

CampTix Badge Generator: Apply coding standards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/common.php

    r7914 r7915  
    22
    33namespace CampTix\Badge_Generator;
    4 use \CampTix\Badge_Generator\HTML;
    5 
    6 defined( 'WPINC' ) or die();
     4use CampTix_Plugin;
     5use CampTix\Badge_Generator\HTML;
     6
     7defined( 'WPINC' ) || die();
    78
    89if ( is_admin() ) {
     
    6667 * Get the attendees
    6768 *
    68  * @param string|array $ticket_ids       Reduce fetched attendees by the ticket they purchased. The string 'all'
     69 * @param string|array $ticket_ids       Filter fetched attendees by the ticket they purchased. The string 'all'
    6970 *                                       will result in all attendees being fetched, regardless of their
    7071 *                                       ticket. An array of ticket IDs will result in only the attendees for
    7172 *                                       those tickets being fetched.
    72  * @param string       $registered_after Reduce fetched attendees by their registration date. Any value parseable
     73 * @param string       $registered_after Filter fetched attendees by their registration date. Any value parseable
    7374 *                                       by strtotime().
    7475 * @param string       $admin_flag       Filter fetched attendees to only those who have the given admin flag
     
    133134 */
    134135function add_dynamic_post_meta( $value, $post_id, $meta_key ) {
    135     /** @global \CampTix_Plugin $camptix */
     136    /** @global CampTix_Plugin $camptix */
    136137    global $camptix;
    137138
     
    142143    }
    143144
    144     if ( 'tix_attendee' != $attendee->post_type ) {
     145    if ( 'tix_attendee' !== $attendee->post_type ) {
    145146        return $value;
    146147    }
     
    156157                )
    157158            );
    158             $value = str_replace( 'secure.gravatar.com', 'en.gravatar.com', $value );   // work around Varnish bug on secure.gravatar.com that causes `503` response codes
     159            $value = str_replace( 'secure.gravatar.com', 'en.gravatar.com', $value );   // work around Varnish bug on secure.gravatar.com that causes `503` response codes.
    159160            break;
    160161
Note: See TracChangeset for help on using the changeset viewer.