Ultimate FAQ - Version 2.0.13

Version Description

(2021-04-23) = - Fixed an issue in which permalinks were not correctly redirecting if you had the destination set to the main FAQ page and pretty permalinks enabled.

Download this release

Release Info

Developer Rustaurius
Plugin Icon 128x128 Ultimate FAQ
Version 2.0.13
Comparing to
See all releases

Code changes from version 2.0.12 to 2.0.13

Files changed (3) hide show
  1. readme.txt +3 -0
  2. ultimate-faqs.php +1 -1
  3. views/View.FAQ.class.php +6 -2
readme.txt CHANGED
@@ -264,6 +264,9 @@ Video 3 - FAQs Ordering
264
 
265
  == Changelog ==
266
 
 
 
 
267
  = 2.0.12 (2021-04-22) =
268
  - Added workaround for missing formatting when using Elementor due to the way they filter the content.
269
  - Removed "Expand All" button from single FAQs.
264
 
265
  == Changelog ==
266
 
267
+ = 2.0.13 (2021-04-23) =
268
+ - Fixed an issue in which permalinks were not correctly redirecting if you had the destination set to the main FAQ page and pretty permalinks enabled.
269
+
270
  = 2.0.12 (2021-04-22) =
271
  - Added workaround for missing formatting when using Elementor due to the way they filter the content.
272
  - Removed "Expand All" button from single FAQs.
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.12
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.13
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) )
views/View.FAQ.class.php CHANGED
@@ -708,12 +708,16 @@ class ewdufaqViewFAQ extends ewdufaqView {
708
 
709
  if ( $ewd_ufaq_controller->settings->get_setting( 'permalink-type' ) == 'individual_page' ) {
710
 
711
- return get_permalink( $this->post->ID );
 
 
712
  }
713
 
714
  if ( $ewd_ufaq_controller->settings->get_setting( 'pretty-permalinks' ) ) {
715
 
716
- return get_permalink() . 'single-faq/' . $this->post->post_name . '/';
 
 
717
  }
718
 
719
  $this->permalink = add_query_arg( 'Display_FAQ', $this->post->ID, ( ! empty( $this->current_url ) ? $this->current_url : get_permalink() ) );
708
 
709
  if ( $ewd_ufaq_controller->settings->get_setting( 'permalink-type' ) == 'individual_page' ) {
710
 
711
+ $this->permalink = get_permalink( $this->post->ID );
712
+
713
+ return;
714
  }
715
 
716
  if ( $ewd_ufaq_controller->settings->get_setting( 'pretty-permalinks' ) ) {
717
 
718
+ $this->permalink = get_permalink() . 'single-faq/' . $this->post->post_name . '/';
719
+
720
+ return;
721
  }
722
 
723
  $this->permalink = add_query_arg( 'Display_FAQ', $this->post->ID, ( ! empty( $this->current_url ) ? $this->current_url : get_permalink() ) );