Ultimate FAQ - Version 2.0.14

Version Description

(2021-04-29) = - Fixed an issue causing it to sometimes take two clicks to open an FAQ when accordion was enabled and you were using a reveal effect. - Set the default sort order for the popular-faqs shortcode to descending.

Download this release

Release Info

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

Code changes from version 2.0.13 to 2.0.14

assets/js/ewd-ufaq.js CHANGED
@@ -128,7 +128,7 @@ function EWD_UFAQ_Reveal_FAQ( faq_element ) {
128
  if ( ewd_ufaq_php_data.reveal_effect != 'none' ) { ewd_ufaq_run_effect( 'show', faq_element ); }
129
  else { faq_element.find( '.ewd-ufaq-faq-body' ).removeClass( 'ewd-ufaq-hidden' ); }
130
 
131
- if ( ewd_ufaq_php_data.faq_accordion ) {
132
 
133
  jQuery( '.ewd-ufaq-faq-div' ).each( function() {
134
 
@@ -154,7 +154,7 @@ function EWD_UFAQ_Hide_FAQ( faq_element ) {
154
 
155
  faq_element.find( '.ewd-ufaq-faq-excerpt' ).removeClass( 'ewd-ufaq-hidden' );
156
 
157
- if ( ewd_ufaq_php_data.reveal_effect != 'none' ) { ewd_ufaq_run_effect( 'hide', faq_element ); }
158
  else { faq_element.find( '.ewd-ufaq-faq-body' ).addClass( 'ewd-ufaq-hidden' ); }
159
 
160
  faq_element.removeClass( 'ewd-ufaq-post-active' );
128
  if ( ewd_ufaq_php_data.reveal_effect != 'none' ) { ewd_ufaq_run_effect( 'show', faq_element ); }
129
  else { faq_element.find( '.ewd-ufaq-faq-body' ).removeClass( 'ewd-ufaq-hidden' ); }
130
 
131
+ if ( ewd_ufaq_php_data.faq_accordion ) {
132
 
133
  jQuery( '.ewd-ufaq-faq-div' ).each( function() {
134
 
154
 
155
  faq_element.find( '.ewd-ufaq-faq-excerpt' ).removeClass( 'ewd-ufaq-hidden' );
156
 
157
+ if ( ewd_ufaq_php_data.reveal_effect != 'none' && ! faq_element.find( '.ewd-ufaq-faq-body' ).hasClass( 'ewd-ufaq-hidden' ) ) { ewd_ufaq_run_effect( 'hide', faq_element ); }
158
  else { faq_element.find( '.ewd-ufaq-faq-body' ).addClass( 'ewd-ufaq-hidden' ); }
159
 
160
  faq_element.removeClass( 'ewd-ufaq-post-active' );
includes/template-functions.php CHANGED
@@ -241,6 +241,7 @@ function ewd_ufaq_popular_faqs_shortcode( $atts ) {
241
  $shortcode_atts = shortcode_atts( $defaults, $atts ) ;
242
 
243
  $shortcode_atts['orderby'] = 'popular';
 
244
 
245
  $output = ewd_ufaq_faqs_shortcode( $shortcode_atts );
246
 
241
  $shortcode_atts = shortcode_atts( $defaults, $atts ) ;
242
 
243
  $shortcode_atts['orderby'] = 'popular';
244
+ $shortcode_atts['order'] = ! empty( $shortcode_atts['order'] ) ? $shortcode_atts['order'] : 'DESC';
245
 
246
  $output = ewd_ufaq_faqs_shortcode( $shortcode_atts );
247
 
readme.txt CHANGED
@@ -264,6 +264,10 @@ Video 3 - FAQs Ordering
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
 
264
 
265
  == Changelog ==
266
 
267
+ = 2.0.14 (2021-04-29) =
268
+ - Fixed an issue causing it to sometimes take two clicks to open an FAQ when accordion was enabled and you were using a reveal effect.
269
+ - Set the default sort order for the popular-faqs shortcode to descending.
270
+
271
  = 2.0.13 (2021-04-23) =
272
  - 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.
273
 
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.13
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.14
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) )