SNAP bypasses theme extract generation
-
Hi, I noticed standard extract generators don’t work with %EXCERPT% – effectively %EXCERPT% is the Raw excerot
This is because SNAP doesn’t allow for the filter, code is currently:if ($post->post_excerpt!="") $exrText = nxs_doQTrans($post->post_excerpt); else $exrText= nxs_doQTrans($post->post_content); $pText = (empty($gOptions['brokenCntFilters']))?apply_filters('the_content', $exrText):$exrText;I would expect the code to be eg:
$exrText = apply_filters('get_the_excerpt', $post->post_excerpt) if ($exrText) //...as beforeInstead SNAP is going straight onto test the content if there is no excerpt, and ‘the_content’ filter is not useful for customising the excerpt as the filtering function won’t know that ‘the_content’ is being called in an extract context..
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘SNAP bypasses theme extract generation’ is closed to new replies.