Changeset 2091294
- Timestamp:
- 05/20/2019 09:41:56 AM (7 years ago)
- File:
-
- 1 edited
-
pixnet/trunk/pixnet_plugin.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pixnet/trunk/pixnet_plugin.php
r2053750 r2091294 4 4 Description: This is PIXNET PA code Wordpress plugin 5 5 Author: Daniel 6 Version: 2.7. 36 Version: 2.7.4 7 7 */ 8 8 … … 24 24 // Retry three times 25 25 for ($i=0; $i<3; $i++) { 26 $result = wp_remote_get('https://api-smartranking.pixplug.in/api/personalrank?domain=' . $this->plugin->site_url .'/' );26 $result = wp_remote_get('https://api-smartranking.pixplug.in/api/personalrank?domain=' . $this->plugin->site_url .'/', array('timeout' => 1)); 27 27 if (is_wp_error($result)) { 28 28 $this->is_onrank = false; … … 94 94 // Retry three times 95 95 for ($i=0; $i<3; $i++) { 96 $result = wp_remote_get('https://rhino-api.pixinsight.com.tw/wordpress/getpixstar?domain=' . $domain );96 $result = wp_remote_get('https://rhino-api.pixinsight.com.tw/wordpress/getpixstar?domain=' . $domain, array('timeout' => 1)); 97 97 if (is_wp_error($result)) { 98 98 continue; … … 191 191 } 192 192 193 $result = wp_remote_get('https://rhino-api.pixinsight.com.tw/wordpress/searchconsole?domain=' . $this->plugin->site_url .'/' );193 $result = wp_remote_get('https://rhino-api.pixinsight.com.tw/wordpress/searchconsole?domain=' . $this->plugin->site_url .'/', array('timeout' => 1)); 194 194 195 195 if (is_wp_error($result)) {
Note: See TracChangeset
for help on using the changeset viewer.