Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@
define( 'WP_FS__API_SANDBOX_ADDRESS_LOCALHOST', 'http://sandbox-api.freemius:8080' );
}

if ( ! defined( 'WP_FS_API__TIMEOUT' ) ) {
define( 'WP_FS_API__TIMEOUT', 30 );
}

// Set API address for local testing.
if ( ! WP_FS__IS_PRODUCTION_MODE ) {
if ( ! defined( 'FS_API__ADDRESS' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion includes/sdk/FreemiusWordPress.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ private static function MakeStaticRequest(
$pWPRemoteArgs = array(
'method' => strtoupper( $pMethod ),
'connect_timeout' => 10,
'timeout' => 60,
'timeout' => WP_FS_API__TIMEOUT,
'follow_redirects' => true,
'redirection' => 5,
'user-agent' => $user_agent,
Expand Down
2 changes: 1 addition & 1 deletion start.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @var string
*/
$this_sdk_version = '2.13.2';
$this_sdk_version = '2.13.2.1';

#region SDK Selection Logic --------------------------------------------------------------------

Expand Down
Loading