Changeset 7733 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wcpt/wcpt-event/class-event-admin.php
- Timestamp:
- 10/16/2018 05:09:51 PM (7 years ago)
- File:
-
- 1 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 /**
Note: See TracChangeset
for help on using the changeset viewer.