WikiPage: Hard deprecate second arg of prepareContentForEdit() as an int
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 10 Sep 2017 03:35:44 +0000 (20:35 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 10 Sep 2017 03:35:44 +0000 (20:35 -0700)
This was documented as deprecated in ba2b22421526.

Change-Id: I728cc0ea0b431138a8edb4d815c53f48e83d7143

includes/page/WikiPage.php

index 312edbd..7f923f8 100644 (file)
@@ -1989,6 +1989,7 @@ class WikiPage implements Page, IDBAccessObject {
                        // This code path is deprecated, and nothing is known to
                        // use it, so performance here shouldn't be a worry.
                        if ( $revid !== null ) {
                        // This code path is deprecated, and nothing is known to
                        // use it, so performance here shouldn't be a worry.
                        if ( $revid !== null ) {
+                               wfDeprecated( __METHOD__ . ' with $revision = revision ID', '1.25' );
                                $revision = Revision::newFromId( $revid, Revision::READ_LATEST );
                        } else {
                                $revision = null;
                                $revision = Revision::newFromId( $revid, Revision::READ_LATEST );
                        } else {
                                $revision = null;