Changeset 920
- Timestamp:
- 02/28/08 21:10:53 (9 months ago)
- Files:
-
- bb-ratings/trunk/bb-ratings.php (modified) (2 diffs)
- bb-ratings/trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
bb-ratings/trunk/bb-ratings.php
r833 r920 6 6 Author: Michael D Adams 7 7 Author URI: http://blogwaffe.com/ 8 Version: 0.8. 38 Version: 0.8.4 9 9 */ 10 10 … … 92 92 93 93 function 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 ); 97 98 } 98 99 bb-ratings/trunk/readme.txt
r833 r920 4 4 Requires at least: 0.8.3 5 5 Tested up to: 0.8.3.1 6 Stable Tag: 0.8. 36 Stable Tag: 0.8.4 7 7 8 8 Allows users to rate topics on a simple 1-5 star scale.
