Version Description
(2021-04-14) = - Workaround for infinite loop issue caused by SiteOrigin Page Builder's application of content filtering.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 2.0.8 |
Comparing to | |
See all releases |
Code changes from version 2.0.7 to 2.0.8
- readme.txt +3 -0
- ultimate-faqs.php +1 -1
- views/View.FAQ.class.php +14 -0
- views/View.FAQs.class.php +1 -1
readme.txt
CHANGED
@@ -264,6 +264,9 @@ Video 3 - FAQs Ordering
|
|
264 |
|
265 |
== Changelog ==
|
266 |
|
|
|
|
|
|
|
267 |
= 2.0.7 (2021-04-14) =
|
268 |
- Fixed the duplicate entry on the Plugins screen
|
269 |
- Fixed an issue with the FAQ Elements Order setting/table that was causing a warning and for it to sometimes not display the correct order
|
264 |
|
265 |
== Changelog ==
|
266 |
|
267 |
+
= 2.0.8 (2021-04-14) =
|
268 |
+
- Workaround for infinite loop issue caused by SiteOrigin Page Builder's application of content filtering.
|
269 |
+
|
270 |
= 2.0.7 (2021-04-14) =
|
271 |
- Fixed the duplicate entry on the Plugins screen
|
272 |
- Fixed an issue with the FAQ Elements Order setting/table that was causing a warning and for it to sometimes not display the correct order
|
ultimate-faqs.php
CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
|
|
7 |
Author URI: http://www.EtoileWebDesign.com/plugins/ultimate-faqs/
|
8 |
Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
9 |
Text Domain: ultimate-faqs
|
10 |
-
Version: 2.0.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) )
|
7 |
Author URI: http://www.EtoileWebDesign.com/plugins/ultimate-faqs/
|
8 |
Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
9 |
Text Domain: ultimate-faqs
|
10 |
+
Version: 2.0.8
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) )
|
views/View.FAQ.class.php
CHANGED
@@ -681,12 +681,16 @@ class ewdufaqViewFAQ extends ewdufaqView {
|
|
681 |
*/
|
682 |
public function set_display_variables() {
|
683 |
|
|
|
|
|
684 |
$this->unique_id = $this->post->ID . '-' . ewd_random_string();
|
685 |
$this->faq_title = apply_filters( 'the_title', $this->post->post_title, $this->post->ID );
|
686 |
$this->faq_answer = apply_filters( 'the_content', html_entity_decode( $this->post->post_content ) );
|
687 |
$this->faq_preview = apply_filters( 'the_content', html_entity_decode( $this->post->post_excerpt ) );
|
688 |
$this->faq_author = get_post_meta( $this->post->ID, 'EWD_UFAQ_Post_Author', true);
|
689 |
$this->date = get_the_date( '', $this->post->ID );
|
|
|
|
|
690 |
}
|
691 |
|
692 |
/**
|
@@ -709,6 +713,16 @@ class ewdufaqViewFAQ extends ewdufaqView {
|
|
709 |
return add_query_arg( 'Display_FAQ', $this->post->ID, get_permalink() );
|
710 |
}
|
711 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
712 |
/**
|
713 |
* Enqueue the necessary CSS and JS files
|
714 |
* @since 2.0.0
|
681 |
*/
|
682 |
public function set_display_variables() {
|
683 |
|
684 |
+
add_filter( 'siteorigin_panels_filter_content_enabled', array( $this, 'disable_site_origin_page_builder' ) );
|
685 |
+
|
686 |
$this->unique_id = $this->post->ID . '-' . ewd_random_string();
|
687 |
$this->faq_title = apply_filters( 'the_title', $this->post->post_title, $this->post->ID );
|
688 |
$this->faq_answer = apply_filters( 'the_content', html_entity_decode( $this->post->post_content ) );
|
689 |
$this->faq_preview = apply_filters( 'the_content', html_entity_decode( $this->post->post_excerpt ) );
|
690 |
$this->faq_author = get_post_meta( $this->post->ID, 'EWD_UFAQ_Post_Author', true);
|
691 |
$this->date = get_the_date( '', $this->post->ID );
|
692 |
+
|
693 |
+
remove_filter( 'siteorigin_panels_filter_content_enabled', array( $this, 'disable_site_origin_page_builder' ) );
|
694 |
}
|
695 |
|
696 |
/**
|
713 |
return add_query_arg( 'Display_FAQ', $this->post->ID, get_permalink() );
|
714 |
}
|
715 |
|
716 |
+
/**
|
717 |
+
* Ridiculous workaround for Site Origin Page Builder. Can remove once (hopefully)
|
718 |
+
* it is less prevalent
|
719 |
+
* @since 2.0.0
|
720 |
+
*/
|
721 |
+
public function disable_site_origin_page_builder( $bool ) {
|
722 |
+
|
723 |
+
return false;
|
724 |
+
}
|
725 |
+
|
726 |
/**
|
727 |
* Enqueue the necessary CSS and JS files
|
728 |
* @since 2.0.0
|
views/View.FAQs.class.php
CHANGED
@@ -186,7 +186,7 @@ class ewdufaqViewFAQs extends ewdufaqView {
|
|
186 |
$this->faq_count = $faq_count;
|
187 |
|
188 |
$this->displayed_faqs[] = $faq->post->ID;
|
189 |
-
|
190 |
echo $faq->render();
|
191 |
}
|
192 |
}
|
186 |
$this->faq_count = $faq_count;
|
187 |
|
188 |
$this->displayed_faqs[] = $faq->post->ID;
|
189 |
+
|
190 |
echo $faq->render();
|
191 |
}
|
192 |
}
|