Revert r42037 "Improve hidden field checks for bug 1181"
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 25 Oct 2008 20:09:01 +0000 (20:09 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 25 Oct 2008 20:09:01 +0000 (20:09 +0000)
I don't think this check has any real benefit, since in the form the fields appear before the text box there's basically no way to submit the form without them. However the more stringent checks are causing disruption to bot edit tools, which annoys people, so I'm backing it out for the time being.

includes/EditPage.php

index 667e625..912580d 100644 (file)
@@ -566,7 +566,7 @@ class EditPage {
 
                        $this->scrolltop = $request->getIntOrNull( 'wpScrolltop' );
 
-                       if ( is_null($this->section) || !$this->edittime || !$this->starttime ) {
+                       if ( is_null( $this->edittime ) ) {
                                # If the form is incomplete, force to preview.
                                wfDebug( "$fname: Form data appears to be incomplete\n" );
                                wfDebug( "POST DATA: " . var_export( $_POST, true ) . "\n" );