Remove deprecated PreparedEdit properties
authoraddshore <addshorewiki@gmail.com>
Sat, 27 Jan 2018 00:57:13 +0000 (16:57 -0800)
committeraddshore <addshorewiki@gmail.com>
Sat, 27 Jan 2018 00:57:13 +0000 (16:57 -0800)
The following properties of PreparedEdit were deprecated in
1.21 and have been removed:
  * PreparedEdit->newText
  * PreparedEdit->oldText
  * PreparedEdit->pst

These have no use left in core or extensions.

Change-Id: Ic48c817aaf3fbb6d5f33678fcb4843180f0bc9fb

RELEASE-NOTES-1.31
includes/edit/PreparedEdit.php
includes/page/WikiPage.php

index 6a10a86..264113e 100644 (file)
@@ -186,6 +186,10 @@ changes to languages because of Phabricator reports.
 * The driver 'mysql' for MySQL, deprecated in MediaWiki 1.30, has been removed.
   The driver has been deprecated since PHP 5.5 and was removed in PHP 7.0. The
   default driver for MySQL has been 'mysqli' since MediaWiki 1.22.
+* The following properties of PreparedEdit were deprecated in 1.21 and have been removed:
+  * PreparedEdit->newText
+  * PreparedEdit->oldText
+  * PreparedEdit->pst
 
 == Compatibility ==
 MediaWiki 1.31 requires PHP 5.5.9 or later. Although HHVM 3.18.5 or later is supported,
index 62624f4..910d221 100644 (file)
@@ -87,27 +87,4 @@ class PreparedEdit {
         */
        public $oldContent;
 
-       /**
-        * $newContent in text form
-        *
-        * @var string
-        * @deprecated since 1.21
-        */
-       public $newText;
-
-       /**
-        * $oldContent in text from
-        *
-        * @var string
-        * @deprecated since 1.21
-        */
-       public $oldText;
-
-       /**
-        * $pstContent in text form
-        *
-        * @var string
-        * @deprecated since 1.21
-        */
-       public $pst;
 }
index d403ab5..a7f53df 100644 (file)
@@ -2128,15 +2128,6 @@ class WikiPage implements Page, IDBAccessObject {
                $edit->newContent = $content;
                $edit->oldContent = $this->getContent( Revision::RAW );
 
-               // NOTE: B/C for hooks! don't use these fields!
-               $edit->newText = $edit->newContent
-                       ? ContentHandler::getContentText( $edit->newContent )
-                       : '';
-               $edit->oldText = $edit->oldContent
-                       ? ContentHandler::getContentText( $edit->oldContent )
-                       : '';
-               $edit->pst = $edit->pstContent ? $edit->pstContent->serialize( $serialFormat ) : '';
-
                if ( $edit->output ) {
                        $edit->output->setCacheTime( wfTimestampNow() );
                }