Ultimate FAQ - Version 1.5.4

Version Description

  • Fixed an issue where the most viewed FAQ stat was being sorted as a string
Download this release

Release Info

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

Code changes from version 1.5.3 to 1.5.4

Files changed (3) hide show
  1. Main.php +1 -1
  2. html/DashboardPage.php +1 -1
  3. 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.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.5.4
11
  */
12
 
13
  global $ewd_ufaq_message;
html/DashboardPage.php CHANGED
@@ -109,7 +109,7 @@ if (get_option("EWD_UFAQ_Update_Flag") == "Yes" or get_option("EWD_UFAQ_Install_
109
  <div class="ewd-dashboard-box-icon"><img src="<?php echo plugins_url(); ?>/ultimate-faqs/images/ewd-dashboard-icon-ufaq-03.png"/>
110
  </div>
111
  <div class="ewd-dashboard-box-value-and-field-container">
112
- <div class="ewd-dashboard-box-value"><?php echo $wpdb->get_var("SELECT meta_value FROM $wpdb->postmeta WHERE meta_key='ufaq_view_count' ORDER BY meta_value DESC"); ?>
113
  </div>
114
  <div class="ewd-dashboard-box-field">Most FAQ Views
115
  </div>
109
  <div class="ewd-dashboard-box-icon"><img src="<?php echo plugins_url(); ?>/ultimate-faqs/images/ewd-dashboard-icon-ufaq-03.png"/>
110
  </div>
111
  <div class="ewd-dashboard-box-value-and-field-container">
112
+ <div class="ewd-dashboard-box-value"><?php echo max($wpdb->get_var("SELECT meta_value FROM $wpdb->postmeta WHERE meta_key='ufaq_view_count' ORDER BY cast(meta_value as unsigned) DESC")- 1, 0); ?>
113
  </div>
114
  <div class="ewd-dashboard-box-field">Most FAQ Views
115
  </div>
readme.txt CHANGED
@@ -209,6 +209,9 @@ Video 3 - FAQs Ordering
209
  9. All answers displayed in the 'list' FAQ mode
210
 
211
  == Changelog ==
 
 
 
212
  = 1.5.3 =
213
  - Fixed a labelling issue for the submit FAQ shortcode
214
 
209
  9. All answers displayed in the 'list' FAQ mode
210
 
211
  == Changelog ==
212
+ = 1.5.4 =
213
+ - Fixed an issue where the most viewed FAQ stat was being sorted as a string
214
+
215
  = 1.5.3 =
216
  - Fixed a labelling issue for the submit FAQ shortcode
217