Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5363
killNPonMove.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:27 PM
2014-11-21 22:27:16 (UTC+0)
Size
907 B
Referenced Files
None
Subscribers
None
killNPonMove.patch
View Options
Index: includes/Title.php
===================================================================
--- includes/Title.php (revision 84167)
+++ includes/Title.php (working copy)
@@ -3238,6 +3238,9 @@
$oldid = $this->getArticleID();
$latest = $this->getLatestRevID();
+ $oldns = $this->getNamespace();
+ $olddbk = $this->getDBkey();
+
$dbw = wfGetDB( DB_MASTER );
if ( $moveOverRedirect ) {
@@ -3322,6 +3325,17 @@
__METHOD__ );
$redirectSuppressed = false;
} else {
+ // Get rid of old new page entries in Special:NewPages and RC.
+ // Needs to be before $this->resetArticleUD( 0 ).
+ $dbw->delete( 'recentchanges', array(
+ 'rc_timestamp' => $dbw->timestamp( $this->getEarliestRevTime() ),
+ 'rc_namespace' => $oldns,
+ 'rc_title' => $olddbk,
+ 'rc_new' => 1
+ ),
+ __METHOD__
+ );
+
$this->resetArticleID( 0 );
$redirectSuppressed = true;
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4923
Default Alt Text
killNPonMove.patch (907 B)
Attached To
Mode
T19463: New pages log doesn't remove/update item after suppression redirect
Attached
Detach File
Event Timeline
Log In to Comment