Testing stripping out functions,php custom content to fix 500 on dev55
authorLaury GvR <laury@gaslightmedia.com>
Mon, 28 Sep 2015 17:20:53 +0000 (13:20 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 28 Sep 2015 17:20:53 +0000 (13:20 -0400)
functions.php

index ba2c2ef..731cf0b 100644 (file)
@@ -422,17 +422,7 @@ add_action('thematic_searchloop', 'mytheme_search_loop');
 function custom_content($content) {
     global $post;
     if ($_REQUEST['glm_action'] == "detail" ) {
-        if ( preg_match_all( '/'. get_shortcode_regex() .'/s', $post->post_content, $matches )
-            && array_key_exists( 2, $matches )
-            && in_array( 'glm-members-list', $matches[2] ) )
-        {
-            $shortcode = $matches[0][0];
-            $content = $shortcode;
-            return $content;
-        } else {
-            $content=str_replace($matches[0],"",$content);
-            return $content;
-        }
+       
     }
     return $content;
 }