Plugin Directory

Changeset 729381


Ignore:
Timestamp:
06/21/2013 12:58:48 PM (13 years ago)
Author:
canitb
Message:

Updated new Soundcloud API, updated to version 0.9.2.3

Location:
soundcloud-sound-competition/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • soundcloud-sound-competition/trunk/API/Soundcloud.php

    r616939 r729381  
    718718    {
    719719        $url = $this->_buildUrl('playlists/' . $playlistId);
    720         $postData = array_map(function ($track) {
    721             return 'playlist[tracks][][id]=' . $track;
    722         }, $trackIds);
     720        $postData = array();
     721
     722        foreach ($trackIds as $trackId) {
     723            array_push($postData, 'playlist[tracks][][id]=' . $trackId);
     724        }
    723725
    724726        if (is_array($optionalPostData)) {
     
    922924        curl_close($ch);
    923925
    924         $this->_lastHttpResponseHeaders = $this->_parseHttpHeaders(
    925             substr($data, 0, $info['header_size'])
    926         );
    927         $this->_lastHttpResponseBody = substr($data, $info['header_size']);
     926        if (array_key_exists(CURLOPT_HEADER, $options) && $options[CURLOPT_HEADER]) {
     927            $this->_lastHttpResponseHeaders = $this->_parseHttpHeaders(
     928                substr($data, 0, $info['header_size'])
     929            );
     930            $this->_lastHttpResponseBody = substr($data, $info['header_size']);
     931        } else {
     932            $this->_lastHttpResponseHeaders = array();
     933            $this->_lastHttpResponseBody = $data;
     934        }
     935
    928936        $this->_lastHttpResponseCode = $info['http_code'];
    929937
  • soundcloud-sound-competition/trunk/API/Soundcloud/Version.php

    r727715 r729381  
    1414
    1515    const MAJOR = 2;
    16     const MINOR = 2;
    17     const PATCH = 1;
     16    const MINOR = 3;
     17    const PATCH = 2;
    1818
    1919    /**
  • soundcloud-sound-competition/trunk/readme.txt

    r728796 r729381  
    55Requires at least: 3.0
    66Tested up to: 3.5
    7 Stable tag: 0.9.2.2
     7Stable tag: 0.9.2.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4444= Minimum Requirements =
    4545
    46 1. PHP 5.2 or higher
     461. PHP 5.2 or higher (with [cURL](http://se2.php.net/curl) support)
    47472. [A Soundcloud account](https://www.soundcloud.com/)
    4848
     
    9797== Changelog ==
    9898
     99= 0.9.2.3 =
     100* Updated to new Soundcloud API.
     101
     102
    99103= 0.9.2.1 =
    100104* Usabillity: Better shortcode copyer.
  • soundcloud-sound-competition/trunk/soundcloud-sound-competition.php

    r729367 r729381  
    44Plugin URI: http://webhjelpen.no/wordpress-plugin/soundcloud-sound-competition/
    55Description: Host your own Sound Contest integrated with SoundCloud, users connect easy with SoundCloud to choose track to add to your competition. Everything within your WordPress web site.
    6 Version: 0.9.2.2
     6Version: 0.9.2.3
    77Author: Kenneth Berentzen
    88Author URI: http://webhjelpen.no/wordpress-plugin
Note: See TracChangeset for help on using the changeset viewer.