Plugin Directory

Changeset 628102


Ignore:
Timestamp:
11/21/2012 11:43:02 AM (13 years ago)
Author:
aueda
Message:

wp-imagezoom 1.0.6

Location:
wp-imagezoom
Files:
28 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-imagezoom/trunk/readme.txt

    r562139 r628102  
    44Tags: image,images,large,big,zoom,zooming,pan,panning,imagezoom,jpeg,jpg,detail,ajax,photo,photos,photograph,photography,foto,fotos,gallery,picture,magnify
    55Requires at least: 3.2.0
    6 Tested up to: 3.4
    7 Stable tag: 1.0.5
     6Tested up to: 3.5
     7Stable tag: 1.0.6
    88
    99Zooming and panning large images similar to google maps.
     
    4141== Changelog ==
    4242
     43= 1.0.6 =
     44* Solved the problem that image was not shown when the link of the image was the attachment post URL.
     45
    4346= 1.0.5 =
    4447* Solved a security problem.
  • wp-imagezoom/trunk/wp-imagezoom.php

    r562139 r628102  
    44Plugin URI: http://tempspace.net/plugins/?page_id=74
    55Description: Zooming and panning large images similar to google maps.
    6 Version: 1.0.5
     6Version: 1.0.6
    77Author: Atsushi Ueda
    88Author URI: http://atsushiueda.com/wtest
     
    162162   
    163163        $url = substr($str, $pos+$find+6, $find2);
     164        $url_org = $url;
     165        $find_att = strpos($url, "attachment_id=");
     166        if ($find_att > 1) {
     167            $attid = substr($url, $find_att+14);
     168            $result = $wpdb->get_results("select guid from ".$wpdb->prefix."posts where ID=".$attid);
     169            $url = $result[0]->guid;
     170        }
    164171
    165172        $result = $wpdb->get_results("select imgid ".
     
    220227
    221228        $pos += $find+6;
    222         $pos += strlen($url);
     229        $pos += strlen($url_org);
    223230
    224231    }
Note: See TracChangeset for help on using the changeset viewer.