Allow <abbr> in wikitext
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 2 Aug 2009 22:15:28 +0000 (22:15 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 2 Aug 2009 22:15:28 +0000 (22:15 +0000)
See bug 671.  Since we use <abbr> for RecentChanges flags now (see
r53975), this is necessary to provide a good wikitext legend for what
the flags mean.

RELEASE-NOTES
includes/Sanitizer.php

index 7f2a67a..dee4461 100644 (file)
@@ -179,6 +179,7 @@ this. Was used when mwEmbed was going to be an extension.
   to {{ns:...}}
 * (bug 16322) Allow maintenance scripts to accept DB user/pass over input or params
 * (bug 18566) Maintenance script to un/protect pages
+* (bug 671) The HTML <abbr> tag is now permitted.
 
 === Bug fixes in 1.16 ===
 
index 47259fb..0cb5b0b 100644 (file)
@@ -357,7 +357,7 @@ class Sanitizer {
                                'h2', 'h3', 'h4', 'h5', 'h6', 'cite', 'code', 'em', 's',
                                'strike', 'strong', 'tt', 'var', 'div', 'center',
                                'blockquote', 'ol', 'ul', 'dl', 'table', 'caption', 'pre',
-                               'ruby', 'rt' , 'rb' , 'rp', 'p', 'span', 'u'
+                               'ruby', 'rt' , 'rb' , 'rp', 'p', 'span', 'u', 'abbr'
                        );
                        $htmlsingle = array(
                                'br', 'hr', 'li', 'dt', 'dd'
@@ -1200,7 +1200,7 @@ class Sanitizer {
                        # samp
                        # kbd
                        'var'        => $common,
-                       # abbr
+                       'abbr'       => $common,
                        # acronym
 
                        # 9.2.2