Remove deprecated userCanCreate(), userCanEdit(), userCanMove(). Methods were depreca...
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 24 May 2009 08:59:39 +0000 (08:59 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Sun, 24 May 2009 08:59:39 +0000 (08:59 +0000)
RELEASE-NOTES
includes/FakeTitle.php
includes/Title.php

index b11fca0..0a68541 100644 (file)
@@ -147,10 +147,13 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 18522) Wrap MediaWiki:Protect-cascadeon in a div for identification
 * (bug 18438) Tweak HTML for preview bar for consistency and accessibility
 * (bug 18432) Updated documentation for dumpBackup.php
-* Fix array logic in Sanitizer::removeHTMLtags so that it doesn't strip good tags
-  that were redundantly defined.
+* Fix array logic in Sanitizer::removeHTMLtags so that it doesn't strip good
+  tags that were redundantly defined.
 * (bug 14118) SpecialPage::getTitleFor does not return a localised name
-* (bug 18698) Renaming non entry point maintenance scripts from .inc.php to .inc
+* (bug 18698) Renaming non entry point maintenance scripts from .inc.php to
+  .inc
+* Deprecated methods userCanCreate(), userCanEdit() and userCanMove() have been
+  removed
 
 == API changes in 1.16 ==
 
index 10bfa53..1c196a7 100644 (file)
@@ -38,9 +38,6 @@ class FakeTitle extends Title {
        function isProtected( $action = '' ) { $this->error(); }
        function userIsWatching() { $this->error(); }
        function userCan( $action, $doExpensiveQueries = true ) { $this->error(); }
-       function userCanCreate() { $this->error(); }
-       function userCanEdit( $doExpensiveQueries = true ) { $this->error(); }
-       function userCanMove() { $this->error(); }
        function isMovable() { $this->error(); }
        function userCanRead() { $this->error(); }
        function isTalkPage() { $this->error(); }
index 084ae71..3c03eba 100644 (file)
@@ -1463,33 +1463,6 @@ class Title {
                        __METHOD__ );
        }
 
-       /**
-        * Can $wgUser edit this page?
-        * @return \type{\bool} TRUE or FALSE
-        * @deprecated use userCan('edit')
-        */
-       public function userCanEdit( $doExpensiveQueries = true ) {
-               return $this->userCan( 'edit', $doExpensiveQueries );
-       }
-
-       /**
-        * Can $wgUser create this page?
-        * @return \type{\bool} TRUE or FALSE
-        * @deprecated use userCan('create')
-        */
-       public function userCanCreate( $doExpensiveQueries = true ) {
-               return $this->userCan( 'create', $doExpensiveQueries );
-       }
-
-       /**
-        * Can $wgUser move this page?
-        * @return \type{\bool} TRUE or FALSE
-        * @deprecated use userCan('move')
-        */
-       public function userCanMove( $doExpensiveQueries = true ) {
-               return $this->userCan( 'move', $doExpensiveQueries );
-       }
-
        /**
         * Would anybody with sufficient privileges be able to move this page?
         * Some pages just aren't movable.