Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#40601 new defect (bug)

wp_update_post then write_post causes odd revisions.

Reported by: programmin Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Revisions Keywords: reporter-feedback
Focuses: Cc:


When you wp_update_post( $postarray ) a post, and write_post() a few lines later, it makes two revisions with the same post_name and guid. Weird.

Change History (2)

#1 @adamsilverstein
3 years ago

  • Component changed from Posts, Post Types to Revisions
  • Keywords dev-feedback added

@programmin Thanks for the bug report.

are you creating a post from scratch, or updating an existing post? Can you provide a code snippet or some more details about what you are trying to do and the exact code you are using?

Are the two revisions the same, or is one missing content?

#2 @johnbillion
3 years ago

  • Keywords reporter-feedback added; dev-feedback removed
Note: See TracTickets for help on using tickets.