Making WordPress.org


Ignore:
Timestamp:
08/27/2018 03:25:40 AM (7 years ago)
Author:
vedjain
Message:

WordCamp: Use taxonomy in meetup applications.

Earlier we were adding predefined tags in meetup applications. Switching to taxonomy will let us add new tags without any code change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-functions.php

    r7625 r7635  
    8585    $private_notes  = get_post_meta( $event_id, '_note'          );
    8686    $status_changes = get_post_meta( $event_id, '_status_change' );
     87    $tag_changes    = get_post_meta( $event_id, '_tags_log' );
    8788
    88     foreach ( array( 'note' => $private_notes, 'status_change' => $status_changes ) as $entry_type => $raw_entries ) {
     89    foreach ( array( 'note' => $private_notes, 'status_change' => $status_changes, 'tag_change' => $tag_changes ) as $entry_type => $raw_entries ) {
    8990        $entries = array_merge( process_raw_entries( $raw_entries, $entry_type ), $entries );
    9091    }
     
    120121    }
    121122
    122     usort( $entries, 'wcpt_sort_log_entries' );
    123 
    124123    return $entries;
    125124}
Note: See TracChangeset for help on using the changeset viewer.