Ultimate FAQ - Version 1.5.17

Version Description

  • Removed a number of notices
Download this release

Release Info

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

Code changes from version 1.5.16 to 1.5.17

Files changed (4) hide show
  1. Main.php +4 -2
  2. Shortcodes/DisplayFAQs.php +1 -0
  3. html/OptionsPage.php +3 -3
  4. readme.txt +3 -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: EWD_UFAQ
10
- Version: 1.5.16
11
  */
12
 
13
  global $ewd_ufaq_message;
@@ -218,6 +218,8 @@ function Set_EWD_UFAQ_Options() {
218
  if (get_option("EWD_UFAQ_Full_Version") == "") {update_option("EWD_UFAQ_Full_Version", "No");}
219
  if (get_option("EWD_UFAQ_Install_Flag") == "") {update_option("EWD_UFAQ_Update_Flag", "Yes");}
220
  if (get_option("EWD_UFAQ_Install_Flag") == "") {update_option("EWD_UFAQ_Install_Flag", "Yes");}
 
 
221
  }
222
 
223
  $UFAQ_Full_Version = get_option("EWD_UFAQ_Full_Version");
@@ -267,7 +269,7 @@ function Run_UFAQ_Tutorial() {
267
  update_option("UFAQ_Run_Tutorial", "Yes");
268
  }
269
 
270
- if (get_option("UFAQ_Run_Tutorial") == "Yes" and $_GET['page'] == 'EWD-UFAQ-Options') {
271
  add_action( 'admin_enqueue_scripts', 'UFAQ_Set_Pointers', 10, 1);
272
  }
273
 
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.5.17
11
  */
12
 
13
  global $ewd_ufaq_message;
218
  if (get_option("EWD_UFAQ_Full_Version") == "") {update_option("EWD_UFAQ_Full_Version", "No");}
219
  if (get_option("EWD_UFAQ_Install_Flag") == "") {update_option("EWD_UFAQ_Update_Flag", "Yes");}
220
  if (get_option("EWD_UFAQ_Install_Flag") == "") {update_option("EWD_UFAQ_Install_Flag", "Yes");}
221
+
222
+ if (get_option("EWD_UFAQ_Install_Version") == "") {update_option("EWD_UFAQ_Install_Version", 1.5);}
223
  }
224
 
225
  $UFAQ_Full_Version = get_option("EWD_UFAQ_Full_Version");
269
  update_option("UFAQ_Run_Tutorial", "Yes");
270
  }
271
 
272
+ if (get_option("UFAQ_Run_Tutorial") == "Yes" and isset($_GET['page']) and $_GET['page'] == 'EWD-UFAQ-Options') {
273
  add_action( 'admin_enqueue_scripts', 'UFAQ_Set_Pointers', 10, 1);
274
  }
275
 
Shortcodes/DisplayFAQs.php CHANGED
@@ -107,6 +107,7 @@ function Display_FAQs($atts) {
107
  $orig_order_setting = $orderby;
108
  $orderby = "meta_value_num";
109
  }
 
110
 
111
  if ($order == "") {$order = $Order_Setting;}
112
  if ($orig_order_setting == "popular") {$order = "DESC";}
107
  $orig_order_setting = $orderby;
108
  $orderby = "meta_value_num";
109
  }
110
+ else {$orig_order_setting = "";}
111
 
112
  if ($order == "") {$order = $Order_Setting;}
113
  if ($orig_order_setting == "popular") {$order = "DESC";}
html/OptionsPage.php CHANGED
@@ -459,7 +459,7 @@
459
  <option value="slug" <?php if($Group_By_Order_By == "slug") {echo "selected=selected";} ?> >Slug</option>
460
  </select>
461
 
462
- <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes")</p>
463
  </fieldset>
464
  </td>
465
  </tr>
@@ -479,14 +479,14 @@
479
  <fieldset><legend class="screen-reader-text"><span>FAQ Ordering</span></legend>
480
  <label title='FAQ Ordering'></label>
481
 
482
- <select name="order_by_setting" <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >
483
  <option value="date" <?php if($Order_By_Setting == "date") {echo "selected=selected";} ?> >Created Date</option>
484
  <option value="title" <?php if($Order_By_Setting == "title") {echo "selected=selected";} ?> >Title</option>
485
  <option value="modified" <?php if($Order_By_Setting == "modified") {echo "selected=selected";} ?> >Modified Date</option>
486
  <option value="set_order" <?php if($Order_By_Setting == "set_order") {echo "selected=selected";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >Selected Order (using Order table)</option>
487
  </select>
488
 
489
- <p>How should individual FAQs be ordered?</p>
490
  </fieldset>
491
  </td>
492
  </tr>
459
  <option value="slug" <?php if($Group_By_Order_By == "slug") {echo "selected=selected";} ?> >Slug</option>
460
  </select>
461
 
462
+ <p>How should FAQ categories be ordered? (Only used if "Group FAQs by Category" above is set to "Yes"). Please note, this is a premium feature.</p>
463
  </fieldset>
464
  </td>
465
  </tr>
479
  <fieldset><legend class="screen-reader-text"><span>FAQ Ordering</span></legend>
480
  <label title='FAQ Ordering'></label>
481
 
482
+ <select name="order_by_setting" <?php if ($UFAQ_Full_Version != "Yes" and get_option("EWD_UFAQ_Install_Version") < 1.6) {echo "disabled";} ?> >
483
  <option value="date" <?php if($Order_By_Setting == "date") {echo "selected=selected";} ?> >Created Date</option>
484
  <option value="title" <?php if($Order_By_Setting == "title") {echo "selected=selected";} ?> >Title</option>
485
  <option value="modified" <?php if($Order_By_Setting == "modified") {echo "selected=selected";} ?> >Modified Date</option>
486
  <option value="set_order" <?php if($Order_By_Setting == "set_order") {echo "selected=selected";} ?> <?php if ($UFAQ_Full_Version != "Yes") {echo "disabled";} ?> >Selected Order (using Order table)</option>
487
  </select>
488
 
489
+ <p>How should individual FAQs be ordered? <?php if (get_option("EWD_UFAQ_Install_Version") >= 1.6) {?> Please note, this is a premium feature. <?php } ?></p>
490
  </fieldset>
491
  </td>
492
  </tr>
readme.txt CHANGED
@@ -247,6 +247,9 @@ Video 3 - FAQs Ordering
247
  13. View of FAQ custom fields in the admin
248
 
249
  == Changelog ==
 
 
 
250
  = 1.5.16 =
251
  - Replaced the version of PHPExcel used, so that the spreadsheet uploads will be compatible with PHP7
252
  - Minor Dashboard fix
247
  13. View of FAQ custom fields in the admin
248
 
249
  == Changelog ==
250
+ = 1.5.17 =
251
+ - Removed a number of notices
252
+
253
  = 1.5.16 =
254
  - Replaced the version of PHPExcel used, so that the spreadsheet uploads will be compatible with PHP7
255
  - Minor Dashboard fix