@@ 364-369 (lines=6) @@ | ||
361 | } |
|
362 | ||
363 | // Track post transitions |
|
364 | if ( isset( $this->post_transitions[$post->ID] ) ) { |
|
365 | // status changed more than once - keep tha most recent $new_status |
|
366 | $this->post_transitions[$post->ID][0] = $new_status; |
|
367 | } else { |
|
368 | $this->post_transitions[$post->ID] = array( $new_status, $old_status ); |
|
369 | } |
|
370 | ||
371 | $operation = $sync['operation']; |
|
372 | unset( $sync['operation'] ); |
|
@@ 649-654 (lines=6) @@ | ||
646 | } |
|
647 | ||
648 | // Track comment transitions |
|
649 | if ( isset( $this->comment_transitions[$comment->comment_ID] ) ) { |
|
650 | // status changed more than once - keep tha most recent $new_status |
|
651 | $this->comment_transitions[$comment->comment_ID][0] = $new_status; |
|
652 | } else { |
|
653 | $this->comment_transitions[$comment->comment_ID] = array( $new_status, $old_status ); |
|
654 | } |
|
655 | ||
656 | $post_sync = $this->get_post_sync_operation( $post->post_status, '_jetpack_test_sync', $post, $this->sync_conditions['comments'] ); |
|
657 |