Changeset 920

Show
Ignore:
Timestamp:
02/28/08 21:10:53 (9 months ago)
Author:
mdawaffe
Message:

no sql errors for bbpress 0.8.3.x

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-ratings/trunk/bb-ratings.php

    r833 r920  
    66Author: Michael D Adams 
    77Author URI: http://blogwaffe.com/ 
    8 Version: 0.8.3 
     8Version: 0.8.4 
    99*/ 
    1010 
     
    9292 
    9393function bb_rating_init() { 
    94         bb_register_view( 'top-rated', __('Highest Rated', 'bb-rating'), 
    95                 array( 'meta_key' => 'avg_rating', 'order_by' => '0 + tm.meta_value' ) 
    96         ); 
     94        $query_args = array( 'meta_key' => 'avg_rating', 'order_by' => '0 + tm.meta_value' ); 
     95        if ( version_compare( bb_get_option( 'version' ), '0.8.4-z', '<' ) ) 
     96                $query_args['meta_value'] = '>0'; 
     97        bb_register_view( 'top-rated', __('Highest Rated', 'bb-rating'), $query_args ); 
    9798} 
    9899 
  • bb-ratings/trunk/readme.txt

    r833 r920  
    44Requires at least: 0.8.3 
    55Tested up to: 0.8.3.1 
    6 Stable Tag: 0.8.3 
     6Stable Tag: 0.8.4 
    77 
    88Allows users to rate topics on a simple 1-5 star scale.