The user_editcount field should be incremented for all page moves, not just those done using Special:MovePage. Also, if talk pages and/or subpages are moved along with the base page, they will all be included in the edit count.
Bug: T195550
Change-Id: If75a45e4404ca7162b59bf85fa62a996383658b9
$nullRevId = $nullRevision->insertOn( $dbw );
$logEntry->setAssociatedRevId( $nullRevId );
+ /**
+ * T163966
+ * Increment user_editcount during page moves
+ * Moved from SpecialMovepage.php per T195550
+ */
+ $user->incEditCount();
+
if ( !$redirectContent ) {
// Clean up the old title *before* reset article id - T47348
WikiPage::onArticleDelete( $this->oldTitle );
# Deal with watches (we don't watch subpages)
WatchAction::doWatchOrUnwatch( $this->watch, $ot, $user );
WatchAction::doWatchOrUnwatch( $this->watch, $nt, $user );
-
- /**
- * T163966
- * Increment user_editcount during page moves
- */
- $user->incEditCount();
}
function showLogFragment( $title ) {