Plugin Directory

Changeset 1074220


Ignore:
Timestamp:
01/23/2015 04:26:46 PM (11 years ago)
Author:
rossigee
Message:

Apply latest patches from github repository (https://github.com/commpropdb/cpd-search).

Location:
cpd-search/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpd-search/trunk/cpd-search.php

    r1068631 r1074220  
    55Plugin URI: http://www.cpd.co.uk/wordpress-plugins/
    66Description: Provides a thin layer to the CPD REST API, via PHP/AJAX methods.
    7 Version: 3.2.2
     7Version: 3.2.3
    88Author: The CPD Team
    99Author URI: http://www.cpd.co.uk/
    1010Text Domain: cpd-search
    1111
    12 Copyright 2011-2014 The CPD Team. All rights reserved. Every last one of them.
     12Copyright 2011-2015 The CPD Team. All rights reserved. Every last one of them.
    1313*/
    1414
     
    725725    }
    726726
    727     static function _cpd_media_folder($media) {
    728         $initial = substr($media->uuid, 0, 1);
    729         $four = substr($media->uuid, 0, 4);
    730         return sprintf("https://s3.amazonaws.com/cpd-media-live-%s/%s/%s", $initial, $four, $media->uuid);
    731     }
    732727    static function mediaUrl($media) {
    733         return self::_cpd_media_folder($media)."/original/".$media->filename;
     728        return $media->original_url;
    734729    }
    735730    static function smallThumbUrl($media) {
    736         return self::_cpd_media_folder($media)."/thumb.jpg";
     731        return $media->small_thumb_url;
    737732    }
    738733    static function mediumThumbUrl($media) {
    739         return self::_cpd_media_folder($media)."/medium.jpg";
     734        return $media->medium_thumb_url;
    740735    }
    741736
  • cpd-search/trunk/readme.txt

    r1068631 r1074220  
    44Requires at least: 3.6
    55Tested up to: 4.1.0
    6 Stable tag: 3.2.2
     6Stable tag: 3.2.3
    77
    88Thin layer to provide custom themes and plugins with access to CPD's commercial property database.
     
    2323
    2424== Changelog ==
     25
     26= 3.2.3 =
     27* Update methods that generate media URLs to use URLs now provided in server response (since REST 1.0.6).
    2528
    2629= 3.2.2 =
Note: See TracChangeset for help on using the changeset viewer.