Changeset 7733
- Timestamp:
- 10/16/2018 05:09:51 PM (6 years ago)
- Location:
- sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-admin.php
r7640 r7733 263 263 $new_status = get_post_status_object( $new_status ); 264 264 265 add_post_meta(265 $log_id = add_post_meta( 266 266 $post->ID, '_status_change', array( 267 267 'timestamp' => time(), … … 270 270 ) 271 271 ); 272 } 273 272 // Encoding $post_type and status_change meta ID in key so that we can fetch it if needed while simultaneously be able to have a where clause on value 273 // Because of the way MySQL works, it will still be able to use index on meta_key when searching, as long as we are querying just the prefix 274 if ( $log_id ) { 275 add_post_meta( $post->ID, "_status_change_log_$post->post_type $log_id", time() ); 276 } 277 } 274 278 275 279 /** -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-meetup/class-meetup-admin.php
r7692 r7733 660 660 661 661 /** 662 * List of meta keys that can be exposed publicly. 663 * 664 * @return array 665 */ 666 public static function get_public_meta_keys() { 667 return array( 668 'Meetup URL', 669 'Meetup Location (From meetup.com)', 670 'Last meetup on', 671 ); 672 } 673 674 /** 662 675 * Schedule cron job for updating data from meetup API 663 676 */ -
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-meetup/class-meetup-application.php
r7653 r7733 75 75 */ 76 76 public static function get_public_post_statuses() { 77 return array( 'wcpt-mtp-nds- swag', 'wcpt-mtp-active', 'wcpt-mtp-dormant' );77 return array( 'wcpt-mtp-nds-vet', 'wcpt-mtp-active', 'wcpt-mtp-dormant' ); 78 78 } 79 79
Note: See TracChangeset
for help on using the changeset viewer.