Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#10004 closed defect (bug) (fixed)

Auto saved page revisions show the wrong user

Reported by: MungoBBQ Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.7.1
Component: Autosave Keywords: needs-patch autosave
Focuses: Cc:


For some reason, the latest auto-saved page revision is constantly being shown as another user than the user who actually was editing the page during the auto-save.

I can not quite figure out why WP thinks this particular user is the one auto-saving, but it's always the same "wrong" user showing up.

The "wrong" user is a previous editor of the same page, but often 5-10 revisions and several months ago.

The actual manually saved revisions all show the correct user.

Change History (4)

#1 @MungoBBQ
9 years ago

Just did some checking up, and the post revision is saved to the database with post_author ID of the "wrong" author (ID: 5 in my case) whereas the correct author ID is 2.

The page edit form seems to contain the correct data however:

<input id="post_author" name="post_author" value="2" type="hidden">

... so the mixup must occur somewhere else. Anybody have an insight to where I should start looking?

#2 @Denis-de-Bernardy
9 years ago

  • Keywords needs-patch added
  • Milestone changed from Unassigned to Future Release

#3 @Denis-de-Bernardy
9 years ago

  • Milestone changed from Future Release to 2.9

#4 @azaozz
9 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11840]) Use the current user as author for autosave, fixes #10004

Note: See TracTickets for help on using tickets.