Plugin Directory

Changeset 1453805


Ignore:
Timestamp:
07/13/2016 01:56:23 AM (10 years ago)
Author:
bortpress
Message:

0.0.5.1

Location:
cactus-masonry-plus
Files:
14 added
2 edited

Legend:

Unmodified
Added
Removed
  • cactus-masonry-plus/trunk/cactusMasonry.php

    r1451804 r1453805  
    22/**
    33 * @package Cactus Masonry Plus
    4  * @version 0.0.5.0
     4 * @version 0.0.5.1
    55 */
    66/*
     
    88 * Plugin URI: cactus.cloud
    99 * Description: A highly customizable gallery of post thumbnails.
    10  * Version: 0.0.5.0
     10 * Version: 0.0.5.1
    1111 * Author: cactus.cloud
    1212 * Author URI: http://cactus.cloud/masonryplus
     
    3232   
    3333    private static $a = null;
    34     private static $VERSION = "0.0.5.0";
     34    private static $VERSION = "0.0.5.1";
    3535   
    3636    static public function init() {
     
    149149            $page = 1;
    150150            if(self::$a['offset'] == null) {
    151                 if(self::$a['paginate'] && isset($_GET["paged"])) {
    152                     $p = intval($_GET["paged"]);
    153                     if($p != 0) {
    154                         $page = $p;
    155                         self::$a['offset'] = (($p - 1) * self::$a['pagesize']);
    156                     } else self::$a['offset'] = 0;
     151                $p = intval((get_query_var('paged')) ? get_query_var('paged') : 1);
     152                if($p != 0) {
     153                    $page = $p;
     154                    self::$a['offset'] = (($p - 1) * self::$a['pagesize']);
    157155                } else self::$a['offset'] = 0;
    158156            }
     
    319317            $o .= "<div class=\"pages\">";
    320318            $o .= paginate_links(array( 'base'   => @add_query_arg('paged','%#%'),
    321                             'format'             => '?paged=%#%',
     319                            //'format'             => '?paged=%#%',
    322320                            'total'              => $the_query->max_num_pages,
    323321                            'current'            => $page,
  • cactus-masonry-plus/trunk/readme.txt

    r1451804 r1453805  
    55Requires at least: 4.4.2
    66Tested up to: 4.5.3
    7 Stable tag: 0.0.5.0
     7Stable tag: 0.0.5.1
    88License: GNU AGPLv3
    99License URI: http://cactus.cloud/licenses/agpl-3.0.txt
     
    3030
    3131== Changelog ==
     32= 0.0.5.1 =
     33* Fixed a bug where pretty pagination permalinks would break the pagination
    3234
    3335= 0.0.5.0 =
Note: See TracChangeset for help on using the changeset viewer.