projects
/
WP-Themes
/
staffords.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23e0b4d
)
regex removed
author
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 23 Nov 2015 20:54:36 +0000
(15:54 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 23 Nov 2015 20:54:36 +0000
(15:54 -0500)
search.php
patch
|
blob
|
history
diff --git
a/search.php
b/search.php
index
c25c697
..
8aac996
100644
(file)
--- a/
search.php
+++ b/
search.php
@@
-74,11
+74,11
@@
// Highlight matches
$context = nl2br(preg_replace('/'.str_replace('/', '\/', join('|', $terms)).'/i', '<strong>$0</strong>', $output));
- $noExtraSpace = preg_replace('!\s+!', ' ', $context);
+
?>
<p class="search_result_context">
- <?php echo $
noExtraSpace
?>
+ <?php echo $
context
?>
</p>
<!-- End of the Contextual/Highlight Search -->