WordPress.org

Plugin Directory


Ignore:
Timestamp:
12/16/12 17:07:25 (5 years ago)
Author:
SriniG
Message:

v1.5.9: Fix for cases where random refresh always fetches only two quotes; widget bugfix

Location:
quotes-collection/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • quotes-collection/trunk/quotes-collection-shortcodes.php

    r635854 r640095  
    6464    else if ($orderby == 'date_added') $orderby = 'time_added'; 
    6565    else if($orderby == 'random' || $orderby == 'rand') { 
    66         $orderby = 'RAND()'; 
     66        $orderby = 'RAND(UNIX_TIMESTAMP(NOW()))'; 
    6767        $order = ''; 
    6868        $paging = false; 
  • quotes-collection/trunk/quotes-collection-widget.php

    r431202 r640095  
    9898    if ( function_exists( 'wp_register_sidebar_widget' ) ) { 
    9999        wp_register_sidebar_widget( 'quotescollection', 'Random Quote', 'quotescollection_widget' ); 
    100         wp_register_widget_control( 'quotescollection', 'Random Quote', 'quotescollection_widget_control', 250, 350 ); 
     100        wp_register_widget_control( 'quotescollection', 'Random Quote', 'quotescollection_widget_control' ); 
    101101    } else { 
    102102        register_sidebar_widget(array('Random Quote', 'widgets'), 'quotescollection_widget'); 
  • quotes-collection/trunk/quotes-collection.php

    r636476 r640095  
    44Plugin URI: http://srinig.com/wordpress/plugins/quotes-collection/ 
    55Description: Quotes Collection plugin with Ajax powered Random Quote sidebar widget helps you collect and display your favourite quotes on your WordPress blog. 
    6 Version: 1.5.8 
     6Version: 1.5.9 
    77Author: Srini G 
    88Author URI: http://srinig.com/wordpress/ 
     
    8787    } 
    8888    else 
    89         $sql .= " ORDER BY RAND()"; 
     89        $sql .= " ORDER BY RAND(UNIX_TIMESTAMP(NOW()))"; 
    9090    $sql .= " LIMIT 1"; 
    9191    $random_quote = $wpdb->get_row($sql, ARRAY_A); 
  • quotes-collection/trunk/readme.txt

    r636587 r640095  
    44Tags: quotes collection, quotes, quotations, random quote, sidebar, widget, ajax, shortcode 
    55Requires at least: 2.8 
    6 Tested up to: 3.5-RC5 
     6Tested up to: 3.5 
    77Stable tag: trunk 
    88License: GNU General Public License 
     
    241241==Changelog== 
    242242 
     243* **2012-12-16: Version 1.5.9** 
     244    * Fix for cases where random refresh always fetches only two quotes 
     245    * Bugfix for widget 
     246 
    243247* **2012-12-10: Version 1.5.8** 
    244248    * Modified html tags filtering for 'quote'. Now all html tags allowed for blog posts can be used in the 'quote' field. 
     
    437441== Upgrade Notice == 
    438442 
    439 = 1.5.8 = 
    440 Bug fix. Upgrade recommended. 
    441  
    442 = 1.5.7 = 
    443 Minor udate. Localization in Macedonian language added, Persian updated. Improvements to code. 
    444  
     443= 1.5.9 = 
     444Upgrade if random refresh always fetches only two quotes, also if the there are problems with the widget controls. 
     445 
     446 
Note: See TracChangeset for help on using the changeset viewer.