From e231ba72aef2687f538506ee2bee03dcc4ede4cb Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Thu, 12 Dec 2013 16:16:35 +0530 Subject: [PATCH] Update the $wgULSNoWebfontsSelectors defaults $wgULSNoWebfontsSelectors had default value as '#p-lang li > a' -the interlanguage links. It does not make sense after the class 'autonym' was added to such links. That 'autonym' css class has fontfamily definition as Autonym, sans-serif ie, Autonym font is applied to the interlanguage links. So, now it make sense to have default value as .autonym to exclude from parsing. This also fixes the problems like Bug 58374 where in random cases the default font for the language get applied even if it has 'autonym' class. This issue was because the js get executed before the css for .autonym class is ready and applied. The jquery.webfonts parser will miss to detect the explicit fontfamily 'Autonym, sans-serif' and the default font is applied. Bug: 58374 Change-Id: I7478a58583d3b029ae8e2d63e118917499c29c30 --- UniversalLanguageSelector.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UniversalLanguageSelector.php b/UniversalLanguageSelector.php index d7ebe2f9..6fd26405 100644 --- a/UniversalLanguageSelector.php +++ b/UniversalLanguageSelector.php @@ -151,10 +151,11 @@ $wgULSNoImeSelectors = array( '#wpCaptchaWord', '.ve-ce-documentNode' ); /** * Array of jQuery selectors of elements on which webfonts must not be applied. - * By default exclude the interwiki language links. + * By default exclude elements with .autonym because that style set font as + * Autonym * @since 2013.09 */ -$wgULSNoWebfontsSelectors = array( '#p-lang li > a' ); +$wgULSNoWebfontsSelectors = array( '.autonym' ); /** * Base path of ULS font repository.