Skip to content

Commit

Permalink
Fixed: content of other posts get replaced in single question page
Browse files Browse the repository at this point in the history
  • Loading branch information
rahularyan committed Nov 22, 2017
1 parent 83c15f9 commit 2535a09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/class-theme.php
Expand Up @@ -322,11 +322,12 @@ public static function anspress_basepage_template( $template ) {
* @return string
*
* @since 4.1.0
* @since 4.1.2 Do not replace content once question is loaded.
*/
public static function the_content_single_question( $content ) {
global $ap_shortcode_loaded, $post;
global $ap_shortcode_loaded, $post, $question_rendered;

if ( ! $post ) {
if ( ! $post || true === $question_rendered ) {
return $content;
}

Expand Down

0 comments on commit 2535a09

Please sign in to comment.