Albert221 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/259546

Change subject: RSS feeds should not be in head for mobile
......................................................................

RSS feeds should not be in head for mobile

Bug: T100377
Change-Id: Idfa6e92fe2bc39ca4dd12f1c1ece572d93136e4d
---
M includes/MobileFrontend.hooks.php
M includes/config/Site.php
2 files changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/46/259546/1

diff --git a/includes/MobileFrontend.hooks.php 
b/includes/MobileFrontend.hooks.php
index f027069..ed7817d 100644
--- a/includes/MobileFrontend.hooks.php
+++ b/includes/MobileFrontend.hooks.php
@@ -664,6 +664,8 @@
         * @return bool
         */
        public static function onBeforePageDisplay( &$out, &$sk ) {
+               global $wgFeed;
+
                $context = MobileContext::singleton();
                $config = $context->getMFConfig();
                $mfEnableXAnalyticsLogging = $config->get( 
'MFEnableXAnalyticsLogging' );
@@ -742,6 +744,9 @@
                        Hooks::run( 'BeforePageDisplayMobile', array( &$out, 
&$sk ) );
                }
 
+               // T100377: By default hide RSS <link>s
+               $wgFeed = $config->get( 'MFRSSFeedLink' );
+
                return true;
        }
 
diff --git a/includes/config/Site.php b/includes/config/Site.php
index 78a5479..f24e532 100644
--- a/includes/config/Site.php
+++ b/includes/config/Site.php
@@ -143,3 +143,8 @@
  * @var int|string
  */
 $wgMFContentNamespace = NS_MAIN;
+
+/**
+ * Sets RSS feed <link> being outputted or not.
+ */
+$wgMFRSSFeedLink = false;
\ No newline at end of file

-- 
To view, visit https://gerrit.wikimedia.org/r/259546
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idfa6e92fe2bc39ca4dd12f1c1ece572d93136e4d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Albert221 <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to