Plugin Directory

Changeset 1586173


Ignore:
Timestamp:
01/31/2017 11:47:40 PM (9 years ago)
Author:
itmatio
Message:

update version number to get wordpress to push new version

Location:
interserve-data-feed/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • interserve-data-feed/trunk/Data/Statistics.php

    r1585466 r1586173  
    171171    {
    172172        $data = $this->getData();
     173        if (empty($data)) {
     174            return '';
     175        }
    173176        foreach ($data as $title => $value) {
    174177            if ($name == strtolower($title)) {
  • interserve-data-feed/trunk/Feed.php

    r1586135 r1586173  
    3434        $options  = [
    3535            'timeout'     => $this->timeout,
    36             'sslverify'   => false,
     36//            'sslverify'   => false,
    3737            // work around bug where certificate was not recognised
    38             'httpversion' => '1.1'
     38//            'httpversion' => '1.1'
    3939            // work around bug where curl error 28 was preventing longer responses from completing
    4040        ];
     
    4545        }
    4646        $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;
    4852    }
    4953}
  • interserve-data-feed/trunk/Manager.php

    r1585503 r1586173  
    243243        $this->forEachPlugin('deactivate');
    244244        wp_unschedule_event(wp_next_scheduled(self::CRON_ACTION), self::CRON_ACTION);
     245        wp_clear_scheduled_hook(self::CRON_ACTION);
    245246        flush_rewrite_rules();
    246247    }
  • interserve-data-feed/trunk/isdata.php

    r1586135 r1586173  
    44Plugin URI: http://data.interserve.org
    55Description: Display job openings, office contact, and other information in your site
    6 Version: 1.1.1
    7 Author: Steve Pavarno
     6Version: 1.1.2
     7Author: Interserve
    88License: GPL2
    99*/
Note: See TracChangeset for help on using the changeset viewer.