Plugin Directory

Changeset 932513


Ignore:
Timestamp:
06/15/2014 02:04:48 AM (12 years ago)
Author:
rossigee
Message:

Apply latest patches from internal repository.

Location:
cpd-search/trunk
Files:
2 edited

Legend:

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

    r921003 r932513  
    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.1.2
     7Version: 3.1.3
    88Author: The CPD Team
    99Author URI: http://www.cpd.co.uk/
     
    140140   
    141141    /**
     142     * @link https://www.cpd.co.uk/api/visitors/register/
    142143     * @throws CPDSearchUserAlreadyExistsException if e-mail is already
    143144     *  registered.
     
    164165            throw new CPDSearchUserAlreadyExistsException();
    165166        }
    166         if($info['http_code'] == 405) {
     167        if($info['http_code'] == 402) {
    167168            throw new CPDSearchAgentNotAllowedVisitorsException();
    168169        }
     
    216217            'email' => $email,
    217218            'password' => $password,
    218             'agentref' => get_option('cpd_agent_ref')
    219219        );
    220220       
     
    229229            'X-CPD-Token: '.$token,
    230230            'X-CPD-Context: '.CPDSearch::service_context(),
    231             //'Content-Type: application/json'
    232         ));
    233         //curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($login));
     231        ));
    234232        curl_setopt($curl, CURLOPT_POSTFIELDS, $login);
    235233        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  • cpd-search/trunk/readme.txt

    r921003 r932513  
    44Requires at least: 3.6
    55Tested up to: 3.9.1
    6 Stable tag: 3.1.2
     6Stable tag: 3.1.3
    77
    88Thin layer to provide custom themes and plugins with access to CPD's commercial property database.
     
    2323
    2424== Changelog ==
     25
     26= 3.1.3 =
     27* Fix for identification of 'agent not subscribed to visitors service' exception.
     28* Stop sending redundant 'agent_ref' parameter in register user requests.
    2529
    2630= 3.1.2 =
Note: See TracChangeset for help on using the changeset viewer.