Steps to Reproduce:
1. Edit a wiki page
2. Apply protection to that page
3. 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](https://en.wikipedia.org/w/index.php?diff=982904761) and surrounding history. There was a [brief discussion](https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(technical)#Reverted_tag_on_page_protection_entry) about it on EnWikipedia's technical village pump.