Skip to content

Stream doesn't detect programmatically created posts correctly #1176

@dero

Description

@dero

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions