Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -449,7 +449,7 @@ |
450 | 450 | } elseif( $this->section == 'new' ) { |
451 | 451 | // Nothing *to* preview for new sections |
452 | 452 | return false; |
453 | | - } elseif( $this->mTitle->exists() && $wgUser->getOption( 'previewonfirst' ) ) { |
| 453 | + } elseif( ( $wgRequest->getVal( 'preload' ) !== '' || $this->mTitle->exists() ) && $wgUser->getOption( 'previewonfirst' ) ) { |
454 | 454 | // Standard preference behaviour |
455 | 455 | return true; |
456 | 456 | } elseif( !$this->mTitle->exists() && $this->mTitle->getNamespace() == NS_CATEGORY ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -190,6 +190,8 @@ |
191 | 191 | * Add accesskey 's' and tooltip to 'upload file' button at Special:Upload |
192 | 192 | * Introduced 'SkinAfterBottomScripts' hook; see docs/hooks.txt for |
193 | 193 | more information |
| 194 | +* (bug 11095) Honour "preview on first edit" preference when preloading |
| 195 | + text for a non-existent page |
194 | 196 | |
195 | 197 | == Bugfixes since 1.10 == |
196 | 198 | |