Plugin Directory

Changeset 539822


Ignore:
Timestamp:
05/04/2012 10:08:35 AM (14 years ago)
Author:
digitalnature
Message:

critical 2.0 bug fix

Location:
post-ratings
Files:
16 added
3 edited

Legend:

Unmodified
Added
Removed
  • post-ratings/trunk/post-ratings.php

    r539746 r539822  
    22/*
    33Plugin Name: Post Ratings
    4 Version: 2.0
     4Version: 2.1
    55Plugin URI: http://digitalnature.eu/forum/plugins/post-ratings/
    66Description: Simple, developer-friendly, straightforward post rating plugin. Relies on post meta to store avg. rating / vote count.
     
    3636
    3737  const
    38     VERSION   = '2.0',                                      // plugin version
     38    VERSION   = '2.1',                                      // plugin version
    3939    ID        = 'post_ratings',                             // internally used for text domain, theme option group name etc.
    4040    MIN_VOTES = 1,                                          // minimum vote count (MV)
  • post-ratings/trunk/readme.txt

    r539746 r539822  
    7575== Changelog ==
    7676
     77= 2.1 =
     78* Fixed issue on widgets page from 2.0
     79
    7780= 2.0 =
    7881* Fixed buggy rating records on multisite
  • post-ratings/trunk/widget.php

    r491912 r539822  
    103103
    104104      $output = array();
    105       $max_rating = PostRatings()->options('max_rating');
     105      $max_rating = PostRatings()->getOptions('max_rating');
    106106
    107107      foreach($posts as $index => $post){
     
    237237    public function form($instance){
    238238      $instance = wp_parse_args($instance, $this->getDefaults());
    239       $plugin_options = PostRatings()->options();
     239      $plugin_options = PostRatings()->getOptions();
    240240      ?>
    241241      <div <?php $this->formClass(); ?>>
     
    380380
    381381      $output = array();
    382       $options = PostRatings()->options();
     382      $options = PostRatings()->getOptions();
    383383      extract($options);
    384384
     
    481481    public function form($instance){
    482482
    483       $plugin_options = PostRatings()->options();
     483      $plugin_options = PostRatings()->getOptions();
    484484      $title = isset($instance['title']) ? esc_attr($instance['title']) : __('Top Rated', PostRatings::ID);
    485485      $sort = isset($instance['sort']) ? esc_attr($instance['sort']) : 'bayesian_rating';
Note: See TracChangeset for help on using the changeset viewer.