Changeset 4461
- Timestamp:
- 12/03/2016 03:52:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/helper-functions.php
r4459 r4461 269 269 */ 270 270 function wcord_get_wordcamp_duration( WP_Post $wordcamp ) { 271 // @todo Make sure $wordcamp is the correct post type 272 271 273 $start = get_post_meta( $wordcamp->ID, 'Start Date (YYYY-mm-dd)', true ); 272 274 $end = get_post_meta( $wordcamp->ID, 'End Date (YYYY-mm-dd)', true ); 273 275 276 // Assume 1 day duration if there is no end date 277 if ( ! $end ) { 278 return 1; 279 } 280 274 281 $duration_raw = $end - $start; 275 282
Note: See TracChangeset
for help on using the changeset viewer.