In eval.php:
$t1 = Title::newFromText( 'New page' );
echo $t1->getContentModel();
wikitext
$page = WikiPage::factory( $t1 );
$content = ContentHandler::makeContent( 'foo', null, CONTENT_MODEL_TEXT );
$page->doEditContent( $content, 'summary' );
$t2 = Title::newFromText( 'New page' );
echo $t2->getContentModel();
wikitext // should be 'text' instead
This is probably caused by bug 69788 ( $t1->mContentModel, populated in $t1->getContentModel(), ends up being cached and used for $t2).
Version: 1.24rc
Severity: normal