Changeset 7915 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/common.php
- Timestamp:
- 11/29/2018 03:19:31 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/common.php
r7914 r7915 2 2 3 3 namespace CampTix\Badge_Generator; 4 use \CampTix\Badge_Generator\HTML; 5 6 defined( 'WPINC' ) or die(); 4 use CampTix_Plugin; 5 use CampTix\Badge_Generator\HTML; 6 7 defined( 'WPINC' ) || die(); 7 8 8 9 if ( is_admin() ) { … … 66 67 * Get the attendees 67 68 * 68 * @param string|array $ticket_ids Reducefetched 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' 69 70 * will result in all attendees being fetched, regardless of their 70 71 * ticket. An array of ticket IDs will result in only the attendees for 71 72 * those tickets being fetched. 72 * @param string $registered_after Reducefetched attendees by their registration date. Any value parseable73 * @param string $registered_after Filter fetched attendees by their registration date. Any value parseable 73 74 * by strtotime(). 74 75 * @param string $admin_flag Filter fetched attendees to only those who have the given admin flag … … 133 134 */ 134 135 function add_dynamic_post_meta( $value, $post_id, $meta_key ) { 135 /** @global \CampTix_Plugin $camptix */136 /** @global CampTix_Plugin $camptix */ 136 137 global $camptix; 137 138 … … 142 143 } 143 144 144 if ( 'tix_attendee' != $attendee->post_type ) {145 if ( 'tix_attendee' !== $attendee->post_type ) { 145 146 return $value; 146 147 } … … 156 157 ) 157 158 ); 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. 159 160 break; 160 161
Note: See TracChangeset
for help on using the changeset viewer.