Making WordPress.org


Ignore:
Timestamp:
02/27/2019 08:09:47 PM (6 years ago)
Author:
iandunn
Message:

Meetup Post Type: Insert status change index when creating post.

Otherwise, the post will be ignored by WordCamp\Reports\Report\Meetup_Status\get_meetup_posts() until it has moved to the next post status.

File:
1 edited

Legend:

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

    r8134 r8358  
    232232        add_post_meta( $post_id, 'Extra Comments', $data['q_additional_comments'] );
    233233        add_post_meta( $post_id, 'Meetup Location', $data['q_mtp_loc'] );
    234         add_post_meta(
     234
     235        $status_log_id = add_post_meta(
    235236            $post_id,
    236237            '_status_change',
     
    242243        );
    243244
     245        // See Event_admin::log_status_changes().
     246        if ( $status_log_id ) {
     247            add_post_meta( $post_id, "_status_change_log_{$post['post_type']} $status_log_id", time() );
     248        }
     249
    244250        $this->post = get_post( $post_id );
    245251
Note: See TracChangeset for help on using the changeset viewer.