Awight has uploaded a new change for review.

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

Change subject: Prevent Google indexing of the CentralNotice div
......................................................................

Prevent Google indexing of the CentralNotice div

We're doing this here because it takes too long to roll out a skin change.

Change-Id: Id6bf279e590409b3464c363ee16442f4eb0dc186
---
M modules/ext.centralNotice.bannerController/bannerController.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice 
refs/changes/26/177626/1

diff --git a/modules/ext.centralNotice.bannerController/bannerController.js 
b/modules/ext.centralNotice.bannerController/bannerController.js
index 1ed85af..26891cd 100644
--- a/modules/ext.centralNotice.bannerController/bannerController.js
+++ b/modules/ext.centralNotice.bannerController/bannerController.js
@@ -443,7 +443,7 @@
                                mw.centralNotice.bannerData.bannerName = 
bannerJson.bannerName;
                                $( 'div#centralNotice' )
                                        .attr( 'class', mw.html.escape( 'cn-' + 
mw.centralNotice.data.category ) )
-                                       .prepend( bannerJson.bannerHtml );
+                                       .prepend( '<!--googleoff: all-->' + 
bannerJson.bannerHtml + '<!--googleon: all-->' );
 
                                // Create landing page links if required
                                if ( bannerJson.autolink ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id6bf279e590409b3464c363ee16442f4eb0dc186
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: wmf_deploy
Gerrit-Owner: Awight <[email protected]>

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

Reply via email to