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:
3d9d923
)
removed regex
author
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 23 Nov 2015 21:09:05 +0000
(16:09 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Mon, 23 Nov 2015 21:09:05 +0000
(16:09 -0500)
search.php
patch
|
blob
|
history
diff --git
a/search.php
b/search.php
index
5a7175f
..
2002624
100644
(file)
--- a/
search.php
+++ b/
search.php
@@
-37,7
+37,7
@@
// Load content as plain text
global $wp_query, $post;
- $content = preg_replace('/[\n\r]+/', '', $content);
+
$content = (!post_password_required($post) ? strip_tags(preg_replace(array("/\r?\n/", '@<\s*(p|br\s*/?)\s*>@'), array(' ', "\n"), apply_filters('the_content', $post->post_content))) : '');
// Search content for terms