Bug Report
The Posts connector uses the transition_post_status hook to detect posts being updated and created. It only considers the post being created when it transitions from auto-draft to anything else.
This is likely enough to capture posts being created in WordPress admin. However, calling wp_insert_post programmatically will assign a new status to posts created via other means. Those posts are then reported as updated.
More context: #1121 (comment)
Expected Behavior
Stream should report programmatically created posts as created.
Bug Report
The Posts connector uses the
transition_post_statushook to detect posts being updated and created. It only considers the post being created when it transitions fromauto-draftto anything else.This is likely enough to capture posts being created in WordPress admin. However, calling
wp_insert_postprogrammatically will assign anewstatus to posts created via other means. Those posts are then reported asupdated.More context: #1121 (comment)
Expected Behavior
Stream should report programmatically created posts as
created.