Hello,

With the ContentHandler merge, WikiPage::doEdit() has been marked as
deprecated in favor of WikiPage::doEditContent().  I would like us to
reconsider that deprecation based on conciseness of our code.

Previously we could simply:

 $page->doEdit( 'some text', 'summary' );

Now we will have to:

 $page->doEditContent(
   ContentHandler:makeContent( 'some text', $page->getTitle() ),
   'summary'
 );

Cant we keep the doEdit() shortcut or am I missing something?


-- 
Antoine "hashar" Musso


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to