Last modified: 2011-05-03 19:15:10 UTC
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.
This seems to be because the logic is failing to work properly. http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.js?view=markup#l276
$.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).
Should be fixed in r87185.