mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-23 15:56:55 +00:00
Remove backward-compatibility with old Scribunto cached content
Old content in the ParserCache may have scribunto errors tagged using the 'id' attribute instead of 'class'. We don't need that compatibility code once the content expires from the parser cache. Bug: T375539 Follows-Up: I123a0f0046a616f63506f096651ae917bbc65cc5 Change-Id: I22ade9ec45971a96fbbd148fbd11ea9bbd2098cf
This commit is contained in:
parent
756896edbb
commit
33c69346fe
|
@ -5,11 +5,7 @@
|
|||
let popup;
|
||||
|
||||
$( '.scribunto-error' ).each( ( index, span ) => {
|
||||
let matches = regex.exec( span.className );
|
||||
if ( matches === null ) {
|
||||
// T375539: backward-compatibility with old cached HTML
|
||||
matches = regex.exec( span.id );
|
||||
}
|
||||
const matches = regex.exec( span.className );
|
||||
if ( matches === null ) {
|
||||
mw.log( 'mw.scribunto.errors: regex mismatch!' );
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue