Remove outdated transition code
authorAdam Wight <awight@wikimedia.org>
Wed, 4 Jul 2018 22:45:09 +0000 (00:45 +0200)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 5 Jul 2018 10:46:19 +0000 (10:46 +0000)
This was a soft transition left over from when "edittime" was the last
form parameter. It has been replaced with an explicit "ultimate" param.

Change-Id: I28767fdf8fab512830fe6e24cacabb598d7cca90

includes/EditPage.php

index 9a8a4a6..de89ab4 100644 (file)
@@ -948,12 +948,7 @@ class EditPage {
                        } else {
                                // If we receive the last parameter of the request, we can fairly
                                // claim the POST request has not been truncated.
                        } else {
                                // If we receive the last parameter of the request, we can fairly
                                // claim the POST request has not been truncated.
-
-                               // TODO: softened the check for cutover.  Once we determine
-                               // that it is safe, we should complete the transition by
-                               // removing the "edittime" clause.
-                               $this->incompleteForm = ( !$request->getVal( 'wpUltimateParam' )
-                                       && is_null( $this->edittime ) );
+                               $this->incompleteForm = !$request->getVal( 'wpUltimateParam' );
                        }
                        if ( $this->incompleteForm ) {
                                # If the form is incomplete, force to preview.
                        }
                        if ( $this->incompleteForm ) {
                                # If the form is incomplete, force to preview.