Plugin Directory

Changeset 1607502


Ignore:
Timestamp:
03/03/2017 11:25:54 PM (9 years ago)
Author:
erichie
Message:

increased API timeout

Location:
lingotek-translation
Files:
97 added
3 edited

Legend:

Unmodified
Added
Removed
  • lingotek-translation/trunk/include/http.php

    r1277996 r1607502  
    99    protected $headers = array();
    1010
     11    const TIMEOUT = 30;
    1112    /*
    1213     * formats a request as multipart
     
    5152      Lingotek::log($args);
    5253    }
    53     return wp_remote_post($url, array('headers' => $this->headers, 'body' => $args));
     54    return wp_remote_post($url, array('headers' => $this->headers, 'body' => $args, 'timeout' => self::TIMEOUT));
    5455    }
    5556
     
    6465      Lingotek::log($args);
    6566    }
    66     return wp_remote_get($url, array('headers' => $this->headers, 'body' => $args, 'timeout' => 30));
     67    return wp_remote_get($url, array('headers' => $this->headers, 'body' => $args, 'timeout' => self::TIMEOUT));
    6768  }
    6869
     
    7778      Lingotek::log($args);
    7879    }
    79     return wp_remote_request($url, array('method' => 'DELETE', 'headers' => $this->headers, 'body' => $args));
     80    return wp_remote_request($url, array('method' => 'DELETE', 'headers' => $this->headers, 'body' => $args, 'timeout' => self::TIMEOUT));
    8081    }
    8182
     
    9091      Lingotek::log($args);
    9192    }
    92     return wp_remote_request($url, array('method' => 'PATCH', 'headers' => $this->headers, 'body' => $args));
     93    return wp_remote_request($url, array('method' => 'PATCH', 'headers' => $this->headers, 'body' => $args, 'timeout' => self::TIMEOUT));
    9394    }
    9495}
  • lingotek-translation/trunk/lingotek.php

    r1568119 r1607502  
    33Plugin name: Lingotek Translation
    44Plugin URI: http://lingotek.com/wordpress#utm_source=wpadmin&utm_medium=plugin&utm_campaign=wplingotektranslationplugin
    5 Version: 1.2.5
     5Version: 1.2.6
    66Author: Lingotek and Frédéric Demarle
    77Author uri: http://lingotek.com
     
    1616    exit();
    1717
    18 define('LINGOTEK_VERSION', '1.2.5'); // plugin version (should match above meta)
     18define('LINGOTEK_VERSION', '1.2.6'); // plugin version (should match above meta)
    1919define('LINGOTEK_MIN_PLL_VERSION', '1.8');
    2020define('LINGOTEK_BASENAME', plugin_basename(__FILE__)); // plugin name as known by WP
  • lingotek-translation/trunk/readme.txt

    r1568119 r1607502  
    55Requires at least: 3.8
    66Tested up to: 4.7
    7 Stable tag: 1.2.5
     7Stable tag: 1.2.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    123123== Changelog ==
    124124
     125= 1.2.6 (2017-3-3) =
     126
     127* Increased API timeout
     128
    125129= 1.2.5 (2017-1-4) =
    126130
Note: See TracChangeset for help on using the changeset viewer.