PluginProbe
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder / 51.1.86
King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder v51.1.86
51.1.86 51.1.84 51.1.85 51.1.83 51.1.82 51.1.81 51.1.79 51.1.78 51.1.77 51.1.76 51.1.74 51.1.75 51.1.65 51.1.64 51.1.63 trunk 51.1.14 51.1.2 51.1.35 51.1.36 51.1.37 51.1.38 51.1.39 51.1.44 51.1.45 All 40 releases
king-addons / freemius / includes / supplements / fs-migration-2.5.1.php

fs-migration-2.5.1.php in King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder 51.1.86, at freemius/includes/supplements/fs-migration-2.5.1.php

31 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Freemius
4 * @copyright Copyright (c) 2015, Freemius, Inc.
5 * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6 * @since 2.5.1
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 if ( ! function_exists( 'fs_migrate_251' ) ) {
14 function fs_migrate_251( Freemius $fs, $install_by_blog_id ) {
15 $permission_manager = FS_Permission_Manager::instance( $fs );
16
17 /**
18 * @var FS_Site $install
19 */
20 foreach ( $install_by_blog_id as $blog_id => $install ) {
21 if ( true === $install->is_disconnected ) {
22 $permission_manager->update_site_tracking(
23 false,
24 ( 0 == $blog_id ) ? null : $blog_id,
25 // Update only if permissions are not yet set.
26 true
27 );
28 }
29 }
30 }
31 }