dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad7db3c
)
WikiTextStructure: Exclude <style> tags
author
Brad Jorsch
<bjorsch@wikimedia.org>
Tue, 13 Mar 2018 18:57:45 +0000
(14:57 -0400)
committer
Brad Jorsch
<bjorsch@wikimedia.org>
Tue, 13 Mar 2018 18:57:45 +0000
(14:57 -0400)
They aren't part of the article content, so they shouldn't be indexed
for search.
Bug: T189528
Change-Id: I3203f1f415eb821975098057d75c0e535b1fc76c
includes/content/WikiTextStructure.php
patch
|
blob
|
history
diff --git
a/includes/content/WikiTextStructure.php
b/includes/content/WikiTextStructure.php
index
0eadc3c
..
1128d7b
100644
(file)
--- a/
includes/content/WikiTextStructure.php
+++ b/
includes/content/WikiTextStructure.php
@@
-29,6
+29,8
@@
class WikiTextStructure {
private $excludedElementSelectors = [
// "it looks like you don't have javascript enabled..." – do not need to index
'audio', 'video',
+ // CSS stylesheets aren't content
+ 'style',
// The [1] for references
'sup.reference',
// The ↑ next to references in the references section