removed regex
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 21:09:05 +0000 (16:09 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 23 Nov 2015 21:09:05 +0000 (16:09 -0500)
search.php

index 5a7175f..2002624 100644 (file)
@@ -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