dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
2a09e50
)
Merge "Prevent Google indexing of the SiteNotice div"
author
Ejegg
<eeggleston@wikimedia.org>
Thu, 4 Dec 2014 20:15:44 +0000
(20:15 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 4 Dec 2014 20:15:44 +0000
(20:15 +0000)
includes/skins/Skin.php
patch
|
blob
|
history
diff --git
a/includes/skins/Skin.php
b/includes/skins/Skin.php
index
5604bc2
..
40318c0
100644
(file)
--- a/
includes/skins/Skin.php
+++ b/
includes/skins/Skin.php
@@
-1559,6
+1559,11
@@
abstract class Skin extends ContextSource {
}
wfRunHooks( 'SiteNoticeAfter', array( &$siteNotice, $this ) );
+
+ // Prevent Google from indexing announcements, cos this dilutes
+ // content results.
+ $siteNotice = "<!--googleoff: all-->{$siteNotice}<!--googleon: all-->";
+
wfProfileOut( __METHOD__ );
return $siteNotice;
}