Plugin Directory

Changeset 1324431


Ignore:
Timestamp:
01/09/2016 03:58:18 AM (10 years ago)
Author:
tcmccarthy1
Message:

Corrects some bugs that are resulting in notices

Location:
tcs3
Files:
818 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • tcs3/trunk/readme.txt

    r1317472 r1324431  
    44Requires at least: 3.5
    55Tested up to: 4.4
    6 Stable tag: 1.7
     6Stable tag: 1.7.1
    77License: GPL, version 2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6161== Changelog ==
    6262
     63= 1.7.1 =
     64* Corrects some bugs that are resulting in notices
     65
    6366= 1.7 =
    6467* Users have expressed use cases where the automated S3 push is needed but they wish to not modify the attachment URL. Adds this option
  • tcs3/trunk/tcS3.php

    r1317472 r1324431  
    44 * Plugin URI: http://tcm.io
    55 * Description: Allows site admins to push uploads to S3
    6  * Version: 1.7
     6 * Version: 1.7.1
    77 * Author: TC McCarthy
    88 * Author URI: http://tcm.io
     
    128128
    129129    public function get_attachment_image_src($image){
    130         $image["src"] = $this->build_attachment_url($image["src"]);
     130        $image["src"] = $this->build_attachment_url($image[0]);
    131131        return $image;
    132132    }
    133133
    134     public function calculate_image_srcset($sources, $size_array, $image_src, $image_meta, $attachment_id){
     134    public function calculate_image_srcset($sources){
    135135        foreach($sources as $key => $source){
    136136            $sources[$key]['url'] = $this->build_attachment_url($source['url']);
Note: See TracChangeset for help on using the changeset viewer.