Changeset 932513
- Timestamp:
- 06/15/2014 02:04:48 AM (12 years ago)
- Location:
- cpd-search/trunk
- Files:
-
- 2 edited
-
cpd-search.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cpd-search/trunk/cpd-search.php
r921003 r932513 5 5 Plugin URI: http://www.cpd.co.uk/wordpress-plugins/ 6 6 Description: Provides a thin layer to the CPD REST API, via PHP/AJAX methods. 7 Version: 3.1. 27 Version: 3.1.3 8 8 Author: The CPD Team 9 9 Author URI: http://www.cpd.co.uk/ … … 140 140 141 141 /** 142 * @link https://www.cpd.co.uk/api/visitors/register/ 142 143 * @throws CPDSearchUserAlreadyExistsException if e-mail is already 143 144 * registered. … … 164 165 throw new CPDSearchUserAlreadyExistsException(); 165 166 } 166 if($info['http_code'] == 40 5) {167 if($info['http_code'] == 402) { 167 168 throw new CPDSearchAgentNotAllowedVisitorsException(); 168 169 } … … 216 217 'email' => $email, 217 218 'password' => $password, 218 'agentref' => get_option('cpd_agent_ref')219 219 ); 220 220 … … 229 229 'X-CPD-Token: '.$token, 230 230 'X-CPD-Context: '.CPDSearch::service_context(), 231 //'Content-Type: application/json' 232 )); 233 //curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($login)); 231 )); 234 232 curl_setopt($curl, CURLOPT_POSTFIELDS, $login); 235 233 curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); -
cpd-search/trunk/readme.txt
r921003 r932513 4 4 Requires at least: 3.6 5 5 Tested up to: 3.9.1 6 Stable tag: 3.1. 26 Stable tag: 3.1.3 7 7 8 8 Thin layer to provide custom themes and plugins with access to CPD's commercial property database. … … 23 23 24 24 == 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. 25 29 26 30 = 3.1.2 =
Note: See TracChangeset
for help on using the changeset viewer.