Fix for Bug# 17463: New pages log doesn't remove/update item after suppression redirect
authorMark A. Hershberger <mah@users.mediawiki.org>
Sat, 19 Mar 2011 04:24:15 +0000 (04:24 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Sat, 19 Mar 2011 04:24:15 +0000 (04:24 +0000)
commitbd3be620489b17f56063b98a96ea7b78abe85f04
tree9d40aa73e32e6548dc18bd1405c3c1985fb27460
parent476fd7589a68e3b663ae1c982db7e1cd5eafa8b8
Fix for Bug# 17463: New pages log doesn't remove/update item after suppression redirect

Except for some whitespace changes, this is Baowolff's patch from http://bug-attachment.wikimedia.org/attachment.cgi?id=8312 which I am applying in the spirit of “apologize later”.

Baowolff writes:

    Don't show new page entries in Special:newpage for supressed redirects.

    Patch to remove the new page entry from Special:RecentChange and
    special:newpages, if the new page gets moved with redirect supressed.

    I'm not a 100% sure this is a good idea. This will only suppress the initial
    new page line in the RC (And newpages), and won't supress any other edits to
    the page. Does this behaviour really make sense? (Thats not rhetorical). It
    seems somewhat different from deleting a page, where none of the content is
    relevent, but when you move a page, the edits don't go away, they're just in a
    new title.

    I suppose we could just change the new page entry in the RC to point to the
    other page, but that seems rather wrong too.

    So anyhow, not sure what the right approach is.
includes/Title.php