Do not offer 'Did you know that you can edit this page?' when page is protected. Spotted today at http://en.wikipedia.org/wiki/Justin_Bieber as IP.
Version: unspecified
Severity: normal
Do not offer 'Did you know that you can edit this page?' when page is protected. Spotted today at http://en.wikipedia.org/wiki/Justin_Bieber as IP.
Version: unspecified
Severity: normal
$.inArray returns an index or -1 if not found -- not a boolean as one apparently expects.
Changing bugsummary. The edit-dyk-pitch shouldn't be hidden just because a page is protected, instead only if the user is not allowed to edit the current page (ie. semi- or fullprotection for anonymous/new users, and fullprotection for autoconfirmed users)
I suggest implementing a mw.user.isAllowed-ish function (or mw.user.canEdit() for starters).