r83772 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83771‎ | r83772 | r83773 >
Date:18:14, 12 March 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Follow-up r83755: @deprecated @since is wrong, doesn't have the expected semantic meaning.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/HTMLForm.php (modified) (history)
  • /trunk/phase3/includes/Linker.php (modified) (history)
  • /trunk/phase3/includes/OutputPage.php (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)
  • /trunk/phase3/includes/User.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialBlockip.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -2697,7 +2697,7 @@
26982698 * which will give them a chance to modify this key based on their own
26992699 * settings.
27002700 *
2701 - * @deprecated @since 1.17 use the ParserOptions object to get the relevant options
 2701+ * @deprecated since 1.17 use the ParserOptions object to get the relevant options
27022702 * @return String Page rendering hash
27032703 */
27042704 function getPageRenderingHash() {
Index: trunk/phase3/includes/Article.php
@@ -159,7 +159,7 @@
160160 *
161161 * @param $text string article content containing redirect info
162162 * @return mixed false, Title of in-wiki target, or string with URL
163 - * @deprecated @since 1.17
 163+ * @deprecated since 1.17
164164 */
165165 public function followRedirectText( $text ) {
166166 // recurse through to only get the final target
@@ -1936,7 +1936,7 @@
19371937 }
19381938
19391939 /**
1940 - * @deprecated @since 1.7 use Article::doEdit()
 1940+ * @deprecated since 1.7 use Article::doEdit()
19411941 */
19421942 function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC = false, $comment = false, $bot = false ) {
19431943 wfDeprecated( __METHOD__ );
@@ -1970,7 +1970,7 @@
19711971 }
19721972
19731973 /**
1974 - * @deprecated @since 1.7 use Article::doEdit()
 1974+ * @deprecated since 1.7 use Article::doEdit()
19751975 */
19761976 function updateArticle( $text, $summary, $minor, $watchthis, $forceBot = false, $sectionanchor = '' ) {
19771977 wfDeprecated( __METHOD__ );
Index: trunk/phase3/includes/Linker.php
@@ -344,7 +344,7 @@
345345 * @param $trail String
346346 * @param $prefix String
347347 * @return string HTML of link
348 - * @deprecated @since 1.17
 348+ * @deprecated since 1.17
349349 */
350350 function makeSizeLinkObj( $size, $nt, $text = '', $query = '', $trail = '', $prefix = '' ) {
351351 global $wgUser;
@@ -1765,7 +1765,7 @@
17661766 /* Deprecated methods */
17671767
17681768 /**
1769 - * @deprecated @since 1.16 Use link()
 1769+ * @deprecated since 1.16 Use link()
17701770 *
17711771 * This function is a shortcut to makeLinkObj(Title::newFromText($title),...). Do not call
17721772 * it if you already have a title object handy. See makeLinkObj for further documentation.
@@ -1792,7 +1792,7 @@
17931793 }
17941794
17951795 /**
1796 - * @deprecated @since 1.16 Use link()
 1796+ * @deprecated since 1.16 Use link()
17971797 *
17981798 * This function is a shortcut to makeKnownLinkObj(Title::newFromText($title),...). Do not call
17991799 * it if you already have a title object handy. See makeKnownLinkObj for further documentation.
@@ -1817,7 +1817,7 @@
18181818 }
18191819
18201820 /**
1821 - * @deprecated @since 1.16 Use link()
 1821+ * @deprecated since 1.16 Use link()
18221822 *
18231823 * This function is a shortcut to makeBrokenLinkObj(Title::newFromText($title),...). Do not call
18241824 * it if you already have a title object handy. See makeBrokenLinkObj for further documentation.
@@ -1840,7 +1840,7 @@
18411841 }
18421842
18431843 /**
1844 - * @deprecated @since 1.16 Use link()
 1844+ * @deprecated since 1.16 Use link()
18451845 *
18461846 * This function is a shortcut to makeStubLinkObj(Title::newFromText($title),...). Do not call
18471847 * it if you already have a title object handy. See makeStubLinkObj for further documentation.
@@ -1864,7 +1864,7 @@
18651865 }
18661866
18671867 /**
1868 - * @deprecated @since 1.16 Use link()
 1868+ * @deprecated since 1.16 Use link()
18691869 *
18701870 * Make a link for a title which may or may not be in the database. If you need to
18711871 * call this lots of times, pre-fill the link cache with a LinkBatch, otherwise each
@@ -1894,7 +1894,7 @@
18951895 }
18961896
18971897 /**
1898 - * @deprecated @since 1.16 Use link()
 1898+ * @deprecated since 1.16 Use link()
18991899 *
19001900 * Make a link for a title which definitely exists. This is faster than makeLinkObj because
19011901 * it doesn't have to do a database query. It's also valid for interwiki titles and special
@@ -1930,7 +1930,7 @@
19311931 }
19321932
19331933 /**
1934 - * @deprecated @since 1.16 Use link()
 1934+ * @deprecated since 1.16 Use link()
19351935 *
19361936 * Make a red link to the edit page of a given title.
19371937 *
@@ -1958,7 +1958,7 @@
19591959 }
19601960
19611961 /**
1962 - * @deprecated @since 1.16 Use link()
 1962+ * @deprecated since 1.16 Use link()
19631963 *
19641964 * Make a brown link to a short article.
19651965 *
@@ -1975,7 +1975,7 @@
19761976 }
19771977
19781978 /**
1979 - * @deprecated @since 1.16 Use link()
 1979+ * @deprecated since 1.16 Use link()
19801980 *
19811981 * Make a coloured link.
19821982 *
@@ -2005,7 +2005,7 @@
20062006
20072007 /**
20082008 * Creates the HTML source for images
2009 - * @deprecated @since 1.16 use makeImageLink2
 2009+ * @deprecated since 1.16 use makeImageLink2
20102010 *
20112011 * @param $title Title object
20122012 * @param $label String: label text
@@ -2071,7 +2071,7 @@
20722072 }
20732073
20742074 /**
2075 - * @deprecated @since 1.14
 2075+ * @deprecated since 1.14
20762076 * Returns raw bits of HTML, use titleAttrib() and accesskey()
20772077 */
20782078 public function tooltipAndAccesskey( $name ) {
@@ -2079,7 +2079,7 @@
20802080 }
20812081
20822082 /**
2083 - * @deprecated @since 1.14
 2083+ * @deprecated since 1.14
20842084 * Returns raw bits of HTML, use titleAttrib()
20852085 */
20862086 public function tooltip( $name, $options = null ) {
Index: trunk/phase3/includes/HTMLForm.php
@@ -159,7 +159,7 @@
160160 /**
161161 * Add the HTMLForm-specific JavaScript, if it hasn't been
162162 * done already.
163 - * @deprecated @since 1.18 load modules with ResourceLoader instead
 163+ * @deprecated since 1.18 load modules with ResourceLoader instead
164164 */
165165 static function addJS() { }
166166
Index: trunk/phase3/includes/OutputPage.php
@@ -1092,7 +1092,7 @@
10931093
10941094 /**
10951095 * Return whether user JavaScript is allowed for this page
1096 - * @deprecated @since 1.18 Load modules with ResourceLoader, and origin and
 1096+ * @deprecated since 1.18 Load modules with ResourceLoader, and origin and
10971097 * trustworthiness is identified and enforced automagically.
10981098 * @return Boolean
10991099 */
@@ -3075,7 +3075,7 @@
30763076 * @param $modules Array: list of jQuery modules which should be loaded
30773077 * @return Array: the list of modules which were not loaded.
30783078 * @since 1.16
3079 - * @deprecated @since 1.17
 3079+ * @deprecated since 1.17
30803080 */
30813081 public function includeJQuery( $modules = array() ) {
30823082 return array();
Index: trunk/phase3/includes/Title.php
@@ -1955,7 +1955,7 @@
19561956 * Is this a *valid* .css or .js subpage of a user page?
19571957 *
19581958 * @return Bool
1959 - * @deprecated @since 1.17
 1959+ * @deprecated since 1.17
19601960 */
19611961 public function isValidCssJsSubpage() {
19621962 return $this->isCssJsSubpage();
Index: trunk/phase3/includes/DefaultSettings.php
@@ -3177,13 +3177,13 @@
31783178
31793179 /**
31803180 * Allow sysops to ban logged-in users
3181 - * @deprecated @since 1.18
 3181+ * @deprecated since 1.18
31823182 */
31833183 $wgSysopUserBans = true;
31843184
31853185 /**
31863186 * Allow sysops to ban IP ranges
3187 - * @deprecated @since 1.18; set $wgBlockCIDRLimit to array( 'IPv4' => 32, 'IPv6 => 128 ) instead.
 3187+ * @deprecated since 1.18; set $wgBlockCIDRLimit to array( 'IPv4' => 32, 'IPv6 => 128 ) instead.
31883188 */
31893189 $wgSysopRangeBans = true;
31903190
Index: trunk/phase3/includes/specials/SpecialBlockip.php
@@ -590,12 +590,12 @@
591591 }
592592 }
593593
594 - # @deprecated @since 1.18
 594+ # @deprecated since 1.18
595595 public static function suppressUserName( $name, $userId, $dbw = null ) {
596596 return RevisionDeleteUser::suppressUserName( $name, $userId, $dbw );
597597 }
598598
599 - # @deprecated @since 1.18
 599+ # @deprecated since 1.18
600600 public static function unsuppressUserName( $name, $userId, $dbw = null ) {
601601 return RevisionDeleteUser::unsuppressUserName( $name, $userId, $dbw );
602602 }

Sign-offs

UserFlagDate
Platonidesinspected19:19, 13 March 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83755Deprecate $wgSysopUserBans and $wgSysopRangeBans, both of which are pre-1.2, ...happy-melon12:13, 12 March 2011

Status & tagging log