diff --git a/RELEASE-NOTES-1.37 b/RELEASE-NOTES-1.37 index 8c865908aeb..a305050bbb4 100644 --- a/RELEASE-NOTES-1.37 +++ b/RELEASE-NOTES-1.37 @@ -25,6 +25,9 @@ For notes on 1.36.x and older releases, see HISTORY. * … ==== Changed configuration ==== +* $wgContentHandlerTextFallback - This setting, which defines how to + react if a plain text version of a non-text Content object is + requested using ContentHandler::getContentText(), is deprecated. * … ==== Removed configuration ==== @@ -295,6 +298,8 @@ because of Phabricator reports. ::setHookContainer() were hard deprecated. Use ::init() to inject dependencies or override ::postInitSetup() to do any custom post-initialization configuration. +* ContentHandler::getContentText() and is now soft deprecated. + Use Content::getText() instead. * … === Other changes in 1.37 === diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 78d011e58e0..7883de553ca 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2420,6 +2420,7 @@ $wgNamespaceContentModels = []; * * 'serialize': serialize to default format * * @since 1.21 + * @deprecated since 1.37 */ $wgContentHandlerTextFallback = 'ignore'; diff --git a/includes/content/ContentHandler.php b/includes/content/ContentHandler.php index 12e644818e2..0d48bab3919 100644 --- a/includes/content/ContentHandler.php +++ b/includes/content/ContentHandler.php @@ -81,6 +81,9 @@ abstract class ContentHandler { * * @since 1.21 * + * @deprecated since 1.37, use Content::getText() for TextContent instances + * instead + * * @param Content|null $content * * @throws MWException If the content is not an instance of TextContent and