Plugin Directory

Changeset 1029855


Ignore:
Timestamp:
11/21/2014 04:24:07 AM (11 years ago)
Author:
Parakoos
Message:

Version 2.17. Fixing 0-column span bug.

Location:
image-wall/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • image-wall/trunk/image-wall.php

    r1022691 r1029855  
    44    Plugin URI: http://www.themodernnomad.com/image-wall-plugin/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=plugin_link
    55    Description: Browse posts/pages by their images, displayed randomly on an infinitely scrollable page. The images link back to the posts where they are attached.
    6     Version: 2.16
     6    Version: 2.17
    77    Author: Gustav Andersson, Marco Catellani
    88    Author URI: http://www.themodernnomad.com/about/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=author_link
     
    710710            }
    711711
    712             $max_number_of_columns = intval(( $width ) / $column_width);
     712            $max_number_of_columns = min(10, intval(($width + $gutter_pixels) / $column_width));
     713
     714            if($max_number_of_columns < 1) {
     715                // This image is not wide enough to fill even a single column. Skip it.
     716                continue;
     717            }
    713718
    714719            if($use_column_proportion_restrictions && $height != 'unknown'){
  • image-wall/trunk/readme.txt

    r1022691 r1029855  
    33Tags: gallery, galleries, images, ajax, image, media, photo, photos, shortcode,
    44Requires at least: 3.5
    5 Tested up to: 4.0
     5Tested up to: 4.0.1
    66Stable tag: trunk
    77Donate link: http://www.themodernnomad.com/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=donation
     
    115115
    116116Thanks to Marco Catellani for the code for link_to_image, only_this_page and only_pages_number.
     117
     118= 2.17 =
     119* Fixed a bug where images that were just big enough to span a number of columns would not be deemed big enough and a smaller number of columns used.
     120* Fixed a bug where it was possible for an image to span zero number of columns, breaking the stylesheet. Thanks to David Rector for alerting me to this problem.
Note: See TracChangeset for help on using the changeset viewer.