Make WordPress Core

Opened 6 years ago

Closed 2 years ago

#40601 closed defect (bug) (worksforme)

wp_update_post then write_post causes odd revisions.

Reported by: programmin's profile programmin Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8
Component: Revisions Keywords: reporter-feedback close
Focuses: Cc:

Description

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 (4)

#1 @adamsilverstein
6 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
6 years ago

  • Keywords reporter-feedback added; dev-feedback removed

#3 @hellofromTonya
2 years ago

  • Keywords close added

Hello @programmin,

Does this issue persist today? If yes, please provide us with more details to help us investigate.

As Adam notes, we need the following feedback:

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?

For now, marking this ticket as a close candidate. Why? Not finding this issue reported elsewhere. It's been over 4 years since reporter feedback requested. Likely due to a conflict from the stack including a plugin or theme. Will review when/if more feedback is given.

#4 @hellofromTonya
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Closing this ticket. However, if the problem persists, please reopen and provide more information to help us further investigate.

Note: See TracTickets for help on using tickets.