From: Brion Vibber Date: Sat, 25 Oct 2008 20:09:01 +0000 (+0000) Subject: Revert r42037 "Improve hidden field checks for bug 1181" X-Git-Tag: 1.31.0-rc.0~44593 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=f6aabb841a45b8af0a731fc921d02f20390fd977;p=lhc%2Fweb%2Fwiklou.git Revert r42037 "Improve hidden field checks for bug 1181" 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. --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 667e625ac9..912580d73d 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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" );