PluginProbe
StreamCast – bring live radio to your site with a sleek player / 2.3.2
StreamCast – bring live radio to your site with a sleek player v2.3.2
2.4.5 2.4.4 trunk 1.0 1.1 2.0.0 2.1.10 2.1.2 2.1.4 2.1.5 2.1.8 2.2.1 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 All 29 releases
streamcast / freemius / includes / supplements / fs-migration-2.5.1.php

fs-migration-2.5.1.php in StreamCast – bring live radio to your site with a sleek player 2.3.2, 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 }