Plugin Directory

Changeset 2269438


Ignore:
Timestamp:
03/27/2020 08:18:15 PM (6 years ago)
Author:
Shmidtelson
Message:

1.0.4.1 Fixed bug with pagination in admin-panel

Location:
wp-post-rating/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-post-rating/trunk/.gitignore

    r2268496 r2269438  
    33.idea
    44.git
     5.editorconfig
     6/vendor/
  • wp-post-rating/trunk/classes/admin/RatingsList.php

    r2261981 r2269438  
    172172        $orderby = (isset($_REQUEST['orderby']) && in_array($_REQUEST['orderby'], array_keys($this->get_sortable_columns()))) ? $_REQUEST['orderby'] : 'id';
    173173        $order = (isset($_REQUEST['order']) && in_array($_REQUEST['order'], ['asc', 'desc'])) ? $_REQUEST['order'] : 'asc';
    174 
     174        $offset = $per_page * $paged;
    175175        // [REQUIRED] define $items array
    176176        // notice that last argument is ARRAY_A, so we will retrieve array
     
    186186ORDER BY {$orderby} {$order}
    187187LIMIT {$per_page}
    188 OFFSET {$paged}
     188OFFSET {$offset}
    189189SQL
    190190            , ARRAY_A
  • wp-post-rating/trunk/readme.txt

    r2268353 r2269438  
    2727*You may customize color of stars and second color automatically generated*
    2828
     29###Functional:
     30* Shortcodes for show rating `[wp_rating]`
     31* Widget for show latest (any sort) votes in sidebar (other place)
     32
    2933== Installation ==
    3034
     
    3438
    3539== Changelog ==
    36 
     40= 1.0.4.1 =
     41* Fix bug with pagination all votes in admin area
    3742= 1.0.4 =
    3843* Added color chooser support
Note: See TracChangeset for help on using the changeset viewer.