Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -531,6 +531,9 @@ |
532 | 532 | $fname = 'EditPage::importFormData'; |
533 | 533 | wfProfileIn( $fname ); |
534 | 534 | |
| 535 | + # Section edit can come from either the form or a link |
| 536 | + $this->section = $request->getVal( 'wpSection', $request->getVal( 'section' ) ); |
| 537 | + |
535 | 538 | if( $request->wasPosted() ) { |
536 | 539 | # These fields need to be checked for encoding. |
537 | 540 | # Also remove trailing whitespace, but don't remove _initial_ |
— | — | @@ -614,13 +617,14 @@ |
615 | 618 | $this->minoredit = false; |
616 | 619 | $this->watchthis = false; |
617 | 620 | $this->recreate = false; |
| 621 | + |
| 622 | + if ( $this->section == 'new' && $request->getVal( 'preloadtitle' ) ) { |
| 623 | + $this->summary = $request->getVal( 'preloadtitle' ); |
| 624 | + } |
618 | 625 | } |
619 | 626 | |
620 | 627 | $this->oldid = $request->getInt( 'oldid' ); |
621 | 628 | |
622 | | - # Section edit can come from either the form or a link |
623 | | - $this->section = $request->getVal( 'wpSection', $request->getVal( 'section' ) ); |
624 | | - |
625 | 629 | $this->live = $request->getCheck( 'live' ); |
626 | 630 | $this->editintro = $request->getText( 'editintro' ); |
627 | 631 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -34,6 +34,8 @@ |
35 | 35 | confused when they are told they are range-blocked. |
36 | 36 | * Add a new hook ImageBeforeProduceHTML to allow extensions to modify wikitext |
37 | 37 | image syntax output. |
| 38 | +* (bug 13100) Added 'preloadtitle' parameter to action=edit§ion=new that |
| 39 | + pre-fills the section title field. |
38 | 40 | |
39 | 41 | === Bug fixes in 1.13 === |
40 | 42 | |