| Index: trunk/phase3/includes/EditPage.php |
| — | — | @@ -327,7 +327,7 @@ |
| 328 | 328 | * @todo document |
| 329 | 329 | */ |
| 330 | 330 | function importFormData( &$request ) { |
| 331 | | - global $wgLang ; |
| | 331 | + global $wgLang, $wgUser; |
| 332 | 332 | $fname = 'EditPage::importFormData'; |
| 333 | 333 | wfProfileIn( $fname ); |
| 334 | 334 | |
| — | — | @@ -384,7 +384,14 @@ |
| 385 | 385 | |
| 386 | 386 | $this->minoredit = $request->getCheck( 'wpMinoredit' ); |
| 387 | 387 | $this->watchthis = $request->getCheck( 'wpWatchthis' ); |
| 388 | | - $this->allowBlankSummary = $request->getBool( 'wpIgnoreBlankSummary' ); |
| | 388 | + |
| | 389 | + # Don't force edit summaries when a user is editing their own user or talk page |
| | 390 | + if( ( $this->mTitle->mNamespace == NS_USER || $this->mTitle->mNamespace == NS_USER_TALK ) && $this->mTitle->getText() == $wgUser->getName() ) { |
| | 391 | + $this->allowBlankSummary = true; |
| | 392 | + } else { |
| | 393 | + $this->allowBlankSummary = $request->getBool( 'wpIgnoreBlankSummary' ); |
| | 394 | + } |
| | 395 | + |
| 389 | 396 | $this->autoSumm = $request->getText( 'wpAutoSummary' ); |
| 390 | 397 | } else { |
| 391 | 398 | # Not a posted form? Start with nothing. |
| Index: trunk/phase3/RELEASE-NOTES |
| — | — | @@ -50,6 +50,7 @@ |
| 51 | 51 | * (bug 5544) Fix redirect arrow in Special:Listredirects for right-to-left languages |
| 52 | 52 | * Replace "doubleredirectsarrow" with a content language check that picks the appropriate arrow |
| 53 | 53 | * (bug 5537) Add stub language file for Samogitian (bat-smg); inherits Lithuanian (lt) |
| | 54 | +* Don't force edit summaries when a user is editing their own user/talk page |
| 54 | 55 | |
| 55 | 56 | == Compatibility == |
| 56 | 57 | |