Changeset 1586173
- Timestamp:
- 01/31/2017 11:47:40 PM (9 years ago)
- Location:
- interserve-data-feed/trunk
- Files:
-
- 4 edited
-
Data/Statistics.php (modified) (1 diff)
-
Feed.php (modified) (2 diffs)
-
Manager.php (modified) (1 diff)
-
isdata.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
interserve-data-feed/trunk/Data/Statistics.php
r1585466 r1586173 171 171 { 172 172 $data = $this->getData(); 173 if (empty($data)) { 174 return ''; 175 } 173 176 foreach ($data as $title => $value) { 174 177 if ($name == strtolower($title)) { -
interserve-data-feed/trunk/Feed.php
r1586135 r1586173 34 34 $options = [ 35 35 'timeout' => $this->timeout, 36 'sslverify' => false,36 // 'sslverify' => false, 37 37 // work around bug where certificate was not recognised 38 'httpversion' => '1.1'38 // 'httpversion' => '1.1' 39 39 // work around bug where curl error 28 was preventing longer responses from completing 40 40 ]; … … 45 45 } 46 46 $body = wp_remote_retrieve_body($response); 47 return json_decode($body, true); 47 $result = json_decode($body, true); 48 if (empty($result)) { 49 throw new \Exception('Invalid json response returned: ' . substr($body, 0, 200)); 50 } 51 return $result; 48 52 } 49 53 } -
interserve-data-feed/trunk/Manager.php
r1585503 r1586173 243 243 $this->forEachPlugin('deactivate'); 244 244 wp_unschedule_event(wp_next_scheduled(self::CRON_ACTION), self::CRON_ACTION); 245 wp_clear_scheduled_hook(self::CRON_ACTION); 245 246 flush_rewrite_rules(); 246 247 } -
interserve-data-feed/trunk/isdata.php
r1586135 r1586173 4 4 Plugin URI: http://data.interserve.org 5 5 Description: Display job openings, office contact, and other information in your site 6 Version: 1.1. 17 Author: Steve Pavarno6 Version: 1.1.2 7 Author: Interserve 8 8 License: GPL2 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.