Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 );

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DanieleAlessandra For consistency, I suggest WP_FS__API_TIMEOUT (like the other constants).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

}

// 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