Ultimate FAQ - Version 1.2.4

Version Description

  • Fixed an error where FAQs on the same page as the search shortcode couldn't be clicked at times
Download this release

Release Info

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

Code changes from version 1.2.3 to 1.2.4

Functions/EWD_UFAQ_Version_Update.php CHANGED
@@ -43,7 +43,7 @@ function EWD_UFAQ_Version_Update_Box() {
43
  <h3 class='hndle'><span><?php _e("Thank You!", 'EWD_UFAQ') ?></span></h3>
44
  <div class="inside">
45
  <?php if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", "EWD_UFAQ"); ?><br> <a href='https://www.youtube.com/channel/UCZPuaoetCJB1vZOmpnMxJNw'><?php _e("Subscribe to our YouTube channel ", "EWD_UFAQ"); ?></a> <?php _e("for tutorial videos on this and our other plugins!", "EWD_UFAQ");?> </li></ul>
46
- <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 1.2.3!", "EWD_UFAQ"); ?><br> <a href='https://wordpress.org/support/view/plugin-reviews/ultimate-faqs?filter=5'><?php _e("Please rate our plugin", "EWD_UFAQ"); ?></a> <?php _e("if you find Ultimate FAQs useful!", "EWD_UFAQ");?> </li></ul><?php } ?>
47
 
48
  <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul>
49
  <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 2.2.9!", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul><?php } */ ?>
43
  <h3 class='hndle'><span><?php _e("Thank You!", 'EWD_UFAQ') ?></span></h3>
44
  <div class="inside">
45
  <?php if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", "EWD_UFAQ"); ?><br> <a href='https://www.youtube.com/channel/UCZPuaoetCJB1vZOmpnMxJNw'><?php _e("Subscribe to our YouTube channel ", "EWD_UFAQ"); ?></a> <?php _e("for tutorial videos on this and our other plugins!", "EWD_UFAQ");?> </li></ul>
46
+ <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 1.2.4!", "EWD_UFAQ"); ?><br> <a href='https://wordpress.org/support/view/plugin-reviews/ultimate-faqs?filter=5'><?php _e("Please rate our plugin", "EWD_UFAQ"); ?></a> <?php _e("if you find Ultimate FAQs useful!", "EWD_UFAQ");?> </li></ul><?php } ?>
47
 
48
  <?php /* if (get_option("EWD_UFAQ_Install_Flag") == "Yes") { ?><ul><li><?php _e("Thanks for installing the Ultimate Product Catalogue Plugin.", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul>
49
  <?php } else { ?><ul><li><?php _e("Thanks for upgrading to version 2.2.9!", "EWD_UFAQ"); ?><br> <a href='http://www.facebook.com/EtoileWebDesign'><?php _e("Follow us on Facebook", "EWD_UFAQ"); ?></a> <?php _e("to suggest new features or hear about upcoming ones!", "EWD_UFAQ");?> </li></ul><?php } */ ?>
Functions/Register_EWD_UFAQ_Posts_Taxonomies.php CHANGED
@@ -24,7 +24,7 @@ function EWD_UFAQ_Create_Posttype() {
24
  'query_var' => true,
25
  'has_archive' => true,
26
  'menu_icon' => null,
27
- 'rewrite' => array('slug' => 'faqs'),
28
  'capability_type' => 'post',
29
  'menu_position' => null,
30
  'menu_icon' => 'dashicons-format-status',
24
  'query_var' => true,
25
  'has_archive' => true,
26
  'menu_icon' => null,
27
+ 'rewrite' => array('slug' => 'ufaqs'),
28
  'capability_type' => 'post',
29
  'menu_position' => null,
30
  'menu_icon' => 'dashicons-format-status',
Main.php CHANGED
@@ -7,7 +7,7 @@ Author: Etoile Web Design
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: EWD_UFAQ
10
- Version: 1.2.3
11
  */
12
 
13
  global $ewd_ufaq_message;
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: EWD_UFAQ
10
+ Version: 1.2.4
11
  */
12
 
13
  global $ewd_ufaq_message;
js/ewd-ufaq-js.js CHANGED
@@ -23,7 +23,7 @@ function handleStyles(display, post_id) {
23
  };
24
 
25
  function ufaqSetClickHandlers() {
26
- jQuery('.ufaq-faq-toggle').on('click', function(event) {
27
  var post_id = jQuery(this).attr("data-postid");
28
 
29
  event.preventDefault();
@@ -38,7 +38,7 @@ function ufaqSetClickHandlers() {
38
  }
39
  });
40
 
41
- jQuery('.ufaq-faq-category-title-toggle').on('click', function(event) {
42
  var category_id = jQuery(this).attr("data-categoryid");
43
 
44
  if (jQuery('#ufaq-faq-category-body-'+category_id).hasClass("ufaq-faq-category-body-hidden")) {
@@ -49,13 +49,13 @@ function ufaqSetClickHandlers() {
49
  }
50
  });
51
 
52
- jQuery('.ufaq-back-to-top-link').on('click', function(event) {
53
  event.preventDefault();
54
 
55
  jQuery('html, body').animate({scrollTop: jQuery("#ufaq-faq-list").offset().top -80}, 100);
56
  });
57
 
58
- jQuery('.ufaq-faq-header-link').on('click', function(event) {
59
  event.preventDefault();
60
 
61
  var faqID = jQuery(this).data("postid");
23
  };
24
 
25
  function ufaqSetClickHandlers() {
26
+ jQuery('.ufaq-faq-toggle').off('click').on('click', function(event) {
27
  var post_id = jQuery(this).attr("data-postid");
28
 
29
  event.preventDefault();
38
  }
39
  });
40
 
41
+ jQuery('.ufaq-faq-category-title-toggle').off('click').on('click', function(event) {
42
  var category_id = jQuery(this).attr("data-categoryid");
43
 
44
  if (jQuery('#ufaq-faq-category-body-'+category_id).hasClass("ufaq-faq-category-body-hidden")) {
49
  }
50
  });
51
 
52
+ jQuery('.ufaq-back-to-top-link').off('click').on('click', function(event) {
53
  event.preventDefault();
54
 
55
  jQuery('html, body').animate({scrollTop: jQuery("#ufaq-faq-list").offset().top -80}, 100);
56
  });
57
 
58
+ jQuery('.ufaq-faq-header-link').off('click').on('click', function(event) {
59
  event.preventDefault();
60
 
61
  var faqID = jQuery(this).data("postid");
readme.txt CHANGED
@@ -142,6 +142,9 @@ Video 3 - FAQs Ordering
142
  9. All answers displayed in the 'list' FAQ mode
143
 
144
  == Changelog ==
 
 
 
145
  = 1.2.3 =
146
  - Added in WPML support for the main shortcodes
147
  - Fixed an error with a missing ID tag
142
  9. All answers displayed in the 'list' FAQ mode
143
 
144
  == Changelog ==
145
+ = 1.2.4 =
146
+ - Fixed an error where FAQs on the same page as the search shortcode couldn't be clicked at times
147
+
148
  = 1.2.3 =
149
  - Added in WPML support for the main shortcodes
150
  - Fixed an error with a missing ID tag