From f1491c9cfa9eb4c4dc79e885a2ff6535c4494496 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Mon, 28 Sep 2015 13:20:53 -0400 Subject: [PATCH] Testing stripping out functions,php custom content to fix 500 on dev55 --- functions.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/functions.php b/functions.php index ba2c2ef..731cf0b 100644 --- a/functions.php +++ b/functions.php @@ -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; } -- 2.17.1