Changeset 1921035
- Timestamp:
- 08/07/2018 02:06:57 PM (8 years ago)
- Location:
- dvla-search
- Files:
-
- 3 edited
- 7 copied
-
tags/1.1.2 (copied) (copied from dvla-search/trunk)
-
tags/1.1.2/dvla-search.php (copied) (copied from dvla-search/trunk/dvla-search.php)
-
tags/1.1.2/endpoint/dvla_search_query.php (copied) (copied from dvla-search/trunk/endpoint/dvla_search_query.php)
-
tags/1.1.2/includes/render_plate.php (copied) (copied from dvla-search/trunk/includes/render_plate.php)
-
tags/1.1.2/includes/widget.php (copied) (copied from dvla-search/trunk/includes/widget.php)
-
tags/1.1.2/public/assets/css/style.css (copied) (copied from dvla-search/trunk/public/assets/css/style.css)
-
tags/1.1.2/readme.txt (copied) (copied from dvla-search/trunk/readme.txt)
-
trunk/dvla-search.php (modified) (1 diff)
-
trunk/endpoint/dvla_search_query.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dvla-search/trunk/dvla-search.php
r1753055 r1921035 4 4 * Plugin URI: https://dvlasearch.co.uk/ 5 5 * Description: Easily add results from the DVLA Search API to your site. Requires a DVLA Search subscription. 6 * Version: 1.1. 26 * Version: 1.1.3 7 7 */ 8 8 -
dvla-search/trunk/endpoint/dvla_search_query.php
r1745273 r1921035 34 34 $dvla_search_registration = safe_input($wp_query->query_vars['dvla_search_registration']); 35 35 $dvla_search_type = safe_input($wp_query->query_vars['dvla_search_type']); 36 36 37 $result = wp_remote_get('https://dvlasearch.appspot.com/DvlaSearch?licencePlate='.$dvla_search_registration.'&apikey='.$api_key); 38 37 39 $dvla_search_result_data = json_decode( $result['body'], true ); 38 40 … … 59 61 60 62 add_action( 'template_redirect', 'dvla_search_query_results' ); 63 64 add_filter('http_request_args', 'dvla_http_request_args', 100, 1); 65 function dvla_http_request_args($r) 66 { 67 $r['timeout'] = 10; 68 return $r; 69 } 70 71 add_action('http_api_curl', 'dvla_http_api_curl', 100, 1); 72 function dvla_http_api_curl($handle) 73 { 74 curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 10 ); 75 curl_setopt( $handle, CURLOPT_TIMEOUT, 10 ); 76 } -
dvla-search/trunk/readme.txt
r1753055 r1921035 120 120 == Changelog == 121 121 122 = 1.1.3 = 123 * Increase timeout of curl requests for slow connections 124 122 125 = 1.1.2 = 123 126 * Fixed an issue where widget options would not display in admin menu.
Note: See TracChangeset
for help on using the changeset viewer.