| @@ -14,9 +14,9 @@ | ||
| 14 | 14 | * Freemius SDK Version. |
| 15 | 15 | * |
| 16 | 16 | * @var string |
| 17 | 17 | */ |
| 18 | - $this_sdk_version = '2.5.3'; | |
| 18 | + $this_sdk_version = '2.4.1'; | |
| 19 | 19 | |
| 20 | 20 | #region SDK Selection Logic -------------------------------------------------------------------- |
| 21 | 21 | |
| 22 | 22 | /** |
| @@ -67,14 +67,10 @@ | ||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | if ( ! isset( $fs_active_plugins ) ) { |
| 70 | 70 | // Load all Freemius powered active plugins. |
| 71 | - $fs_active_plugins = get_option( 'fs_active_plugins' ); | |
| 71 | + $fs_active_plugins = get_option( 'fs_active_plugins', new stdClass() ); | |
| 72 | 72 | |
| 73 | - if ( ! is_object( $fs_active_plugins ) ) { | |
| 74 | - $fs_active_plugins = new stdClass(); | |
| 75 | - } | |
| 76 | - | |
| 77 | 73 | if ( ! isset( $fs_active_plugins->plugins ) ) { |
| 78 | 74 | $fs_active_plugins->plugins = array(); |
| 79 | 75 | } |
| 80 | 76 | } |
| @@ -515,9 +511,9 @@ | ||
| 515 | 511 | return $fs; |
| 516 | 512 | } |
| 517 | 513 | |
| 518 | 514 | /** |
| 519 | - * @param array <string,string|bool|array> $module Plugin or Theme details. | |
| 515 | + * @param array <string,string> $module Plugin or Theme details. | |
| 520 | 516 | * |
| 521 | 517 | * @return Freemius |
| 522 | 518 | * @throws Freemius_Exception |
| 523 | 519 | */ |
| @@ -530,5 +526,5 @@ | ||
| 530 | 526 | |
| 531 | 527 | function fs_dump_log() { |
| 532 | 528 | FS_Logger::dump(); |
| 533 | 529 | } |
| 534 | - } | |
| 530 | + } | |