Ultimate FAQ - Version 1.8.6

Version Description

  • Update to fix same-page permalinks
  • Update to fix sidebar misalignment issue when Group By Category is enabled
Download this release

Release Info

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

Code changes from version 1.8.4 to 1.8.6

Files changed (3) hide show
  1. Main.php +2 -3
  2. Shortcodes/DisplayFAQs.php +4 -1
  3. readme.txt +7 -0
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: ultimate-faqs
10
- Version: 1.8.4
11
  */
12
 
13
  global $ewd_ufaq_message;
@@ -255,9 +255,8 @@ function Set_EWD_UFAQ_Options() {
255
  $UFAQ_Full_Version = get_option("EWD_UFAQ_Full_Version");
256
  if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and isset($_POST['EWD_UFAQ_Upgrade_To_Full']) and $UFAQ_Full_Version == "Yes") {add_action("admin_notices", "EWD_UFAQ_Upgrade_Notice");}
257
 
258
- $UFAQ_Rules = get_option('rewrite_rules');
259
  $PrettyLinks = get_option("EWD_UFAQ_Pretty_Permalinks");
260
- if (!isset($UFAQ_Rules['(.?.+?)/single-faq/([^&]*)/?$']) and $PrettyLinks == "Yes") {
261
  add_filter( 'query_vars', 'EWD_UFAQ_add_query_vars_filter' );
262
  add_filter('init', 'EWD_UFAQ_Rewrite_Rules');
263
  update_option("EWD_UFAQ_Update_RR_Rules", "No");
7
  Author URI: http://www.EtoileWebDesign.com/wordpress-plugins/
8
  Terms and Conditions: http://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
  Text Domain: ultimate-faqs
10
+ Version: 1.8.6
11
  */
12
 
13
  global $ewd_ufaq_message;
255
  $UFAQ_Full_Version = get_option("EWD_UFAQ_Full_Version");
256
  if (isset($_GET['post_type']) and $_GET['post_type'] == 'ufaq' and isset($_POST['EWD_UFAQ_Upgrade_To_Full']) and $UFAQ_Full_Version == "Yes") {add_action("admin_notices", "EWD_UFAQ_Upgrade_Notice");}
257
 
 
258
  $PrettyLinks = get_option("EWD_UFAQ_Pretty_Permalinks");
259
+ if ($PrettyLinks == "Yes") {
260
  add_filter( 'query_vars', 'EWD_UFAQ_add_query_vars_filter' );
261
  add_filter('init', 'EWD_UFAQ_Rewrite_Rules');
262
  update_option("EWD_UFAQ_Update_RR_Rules", "No");
Shortcodes/DisplayFAQs.php CHANGED
@@ -513,7 +513,6 @@ function Display_FAQs($atts) {
513
  endwhile;
514
 
515
  if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and $Category != "uncategorized" and $FAQ_Query->post_count > 0) {
516
- $ReturnString .= "</div>";
517
  $ReturnString .= "</div>";
518
  $HeaderString .= "</div>";
519
  }
@@ -526,6 +525,10 @@ function Display_FAQs($atts) {
526
  $ReturnString .= "<div class='ewd-ufaq-no-results'>" . $No_Results_Found_Text . "</div>";
527
  }
528
 
 
 
 
 
529
  if ($faqs_only != 'Yes') {
530
  $ReturnString .= "</div>";
531
 
513
  endwhile;
514
 
515
  if ($Category != "EWD_UFAQ_ALL_CATEGORIES" and $Category != "uncategorized" and $FAQ_Query->post_count > 0) {
 
516
  $ReturnString .= "</div>";
517
  $HeaderString .= "</div>";
518
  }
525
  $ReturnString .= "<div class='ewd-ufaq-no-results'>" . $No_Results_Found_Text . "</div>";
526
  }
527
 
528
+ if ($Group_By_Category == "Yes") {
529
+ $ReturnString .= "</div>";
530
+ }
531
+
532
  if ($faqs_only != 'Yes') {
533
  $ReturnString .= "</div>";
534
 
readme.txt CHANGED
@@ -270,6 +270,13 @@ Video 3 - FAQs Ordering
270
 
271
 
272
  == Changelog ==
 
 
 
 
 
 
 
273
  = 1.8.4 =
274
  - Made the request for feedback less intrusive
275
 
270
 
271
 
272
  == Changelog ==
273
+ = 1.8.6 =
274
+ - Update to fix same-page permalinks
275
+ - Update to fix sidebar misalignment issue when Group By Category is enabled
276
+
277
+ = 1.8.5 =
278
+ - Update to correct potential alignment issues when Group FAQs by Category enabled
279
+
280
  = 1.8.4 =
281
  - Made the request for feedback less intrusive
282