Select "move subpages" by default when moving a page
authorDannyS712 <DannyS712.enwiki@gmail.com>
Tue, 14 May 2019 05:39:22 +0000 (05:39 +0000)
committerDannyS712 <DannyS712.enwiki@gmail.com>
Tue, 14 May 2019 05:50:20 +0000 (05:50 +0000)
Bug: T222953
Change-Id: I4b5ab3b73c48aa2bb6707ad8ad1ce2a626190921

includes/specials/SpecialMovepage.php

index b561e5b..d8aa3c7 100644 (file)
@@ -413,9 +413,7 @@ class MovePageForm extends UnlistedSpecialPage {
                                        'name' => 'wpMovesubpages',
                                        'id' => 'wpMovesubpages',
                                        'value' => '1',
-                                       # Don't check the box if we only have talk subpages to
-                                       # move and we aren't moving the talk page.
-                                       'selected' => $this->moveSubpages && ( $this->oldTitle->hasSubpages() || $this->moveTalk ),
+                                       'selected' => true, // T222953 Always check the box
                                ] ),
                                [
                                        'label' => new OOUI\HtmlSnippet(