$redirectArticle->updateRevisionOn( $dbw, $redirectRevision, 0 );
Hooks::run( 'NewRevisionFromEditComplete',
[ $redirectArticle, $redirectRevision, false, $user ] );
$redirectArticle->doEditUpdates( $redirectRevision, $user, [ 'created' => true ] );
$redirectArticle->updateRevisionOn( $dbw, $redirectRevision, 0 );
Hooks::run( 'NewRevisionFromEditComplete',
[ $redirectArticle, $redirectRevision, false, $user ] );
$redirectArticle->doEditUpdates( $redirectRevision, $user, [ 'created' => true ] );