PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.7
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.7
2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 All 107 releases
b-blocks / freemius / includes / supplements / fs-migration-2.5.1.php

fs-migration-2.5.1.php in bBlocks – Essential Gutenberg Blocks & Patterns Collection 2.1.7, 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 }