Plugin Directory

Changeset 909996


Ignore:
Timestamp:
05/07/2014 08:33:28 PM (12 years ago)
Author:
tlaplugins
Message:

added timeout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inlinks-ad-plugin/trunk/inlinks.php

    r908302 r909996  
    540540            $results = substr($results, strpos($results, '<?'));
    541541        } else {
    542             $results = wp_remote_get($url);
     542            $results = wp_remote_get($url, array('timeout' => 15));
    543543            if (!is_wp_error($results)) {
    544544                $results = substr($results['body'], strpos($results['body'], '<?'));
Note: See TracChangeset for help on using the changeset viewer.