Page MenuHomePhabricator

'Rollback 0 edits' link shown
Closed, DuplicatePublic

Description

Steps to reproduce:
Unknown

Actual result:
Viewing https://en.wikipedia.org/w/index.php?title=Special:Contributions&offset=&limit=20&target=DannyS712 (when the edit in question was the most recent edit the user made):

Rollback link
<span class="mw-rollback-link"><a href="/w/index.php?title=Frank_Finn_(footballer)&amp;action=rollback&amp;from=DannyS712&amp;token=ed35e205c234c2ce469750f6fd8274735e3fefb0%2B%5C" title="&quot;Rollback&quot; reverts the last contributor's edit(s) to this page in one click." data-mw="interface">rollback: 0 edits</a></span>

[rollback: 0 edits] is the text shown

Note: This is the content of the rollbacklinkcount message; enwiki has a custom definition it: rollback: $1 {{PLURAL:$1|edit|edits}}

Expected result:
A message to rollback 0 edits is never shown, since rollback reverts one or more edits

Event Timeline

Restricted Application added subscribers: Liuxinyu970226, Aklapper. · View Herald Transcript
DannyS712 moved this task from Unsorted to Reports on the User-DannyS712 board.

I cannot reproduce this from my end.
view-source:https://en.wikipedia.org/w/index.php?title=Special:Contributions&offset=&limit=20&target=DannyS712

Rollback link
<a href="/wiki/Frank_Stubbs_(footballer)" class="mw-contributions-title" title="Frank Stubbs (footballer)">Frank Stubbs (footballer)</a><span class="comment comment--without-parentheses">Add short description: &quot;Australian rules footballer, born 1919&quot;</span>
<span class="mw-uctop">current</span> <span class="mw-rollback-link"><a href="/w/index.php?title=Frank_Stubbs_(footballer)&amp;action=rollback&amp;from=DannyS712&amp;token=a9b6f5be01cdbf81b008feae22e86d8b5e402877%2B%5C" title="&quot;Rollback&quot; reverts the last contributor&#039;s edit(s) to this page in one click." data-mw="interface">rollback: 1 edit</a></span>

Screen Shot 2020-02-09 at 4.49.14 PM.png (104×1 px, 89 KB)

Can't reproduce from my end. It could be that the article got changed in the meantime and the history of the page was cached. But this doesn't appear to be the case since https://en.wikipedia.org/w/index.php?title=Frank_Finn_(footballer)&action=history shows that Danny is the latest editor of the article.

I couldn't reliably reproduce either; it happens randomly