Skip to content

Commit a91a95b

Browse files
authored
[multisite] [cache] Fix the site-activated plugins cache so that it only has the relevant properties. (#821)
1 parent 564b9aa commit a91a95b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

includes/class-freemius.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8839,8 +8839,13 @@ private function get_plugins_data_for_api() {
88398839
isset( $site_active_plugins[ $basename ] )
88408840
) {
88418841
// Plugin was site level activated.
8842-
$site_active_plugins_cache->plugins[ $basename ] = $network_plugins[ $basename ];
8843-
$site_active_plugins_cache->plugins[ $basename ]['is_active'] = true;
8842+
$site_active_plugins_cache->plugins[ $basename ] = array(
8843+
'slug' => $network_plugins[ $basename ]['slug'],
8844+
'version' => $network_plugins[ $basename ]['Version'],
8845+
'title' => $network_plugins[ $basename ]['Name'],
8846+
'is_active' => $is_active,
8847+
'is_uninstalled' => false,
8848+
);
88448849
} else if ( isset( $site_active_plugins_cache->plugins[ $basename ] ) &&
88458850
! isset( $site_active_plugins[ $basename ] )
88468851
) {

start.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @var string
1717
*/
18-
$this_sdk_version = '2.12.1.2';
18+
$this_sdk_version = '2.12.1.3';
1919

2020
#region SDK Selection Logic --------------------------------------------------------------------
2121

0 commit comments

Comments
 (0)