Changeset 4576 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/common.php
- Timestamp:
- 12/23/2016 05:27:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/camptix-badge-generator/includes/common.php
r4360 r4576 128 128 $attendee = get_post( $post_id ); 129 129 130 // todo return early to avoid a PHP notice when $attendee isn't a WP_Post, like during cron or 404 130 if ( ! is_a( $attendee, 'WP_Post' ) ) { 131 return $value; 132 } 131 133 132 134 if ( 'tix_attendee' != $attendee->post_type ) {
Note: See TracChangeset
for help on using the changeset viewer.