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