Steps to Reproduce:
- Edit a wiki page
- Apply protection to that page
- Revert the edit made in 1
Actual Results:
The "reverted" tag is applied to both edit 1 and the protection entry in the page history.
When a page is protected, the page history shows a log of the protection along with an empty diff. If protection occurs between an edit and a revert, the page protection gets marked as "Reverted" despite the page still being protected. This is misleading and undesirable behavior.
Expected Results:
The history entry noting page protection should not be marked as reverted, only the prior edit.
Example:
You can see an example of the undesired behavior at this revision and surrounding history. There was a brief discussion about it on EnWikipedia's technical village pump.