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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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); 
Note: See TracChangeset for help on using the changeset viewer.