Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/content-.../inc/freemius/template.../partials
File: network-activation.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[2] Fix | Delete
exit;
[3] Fix | Delete
}
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* @var array $VARS
[7] Fix | Delete
* @var Freemius $fs
[8] Fix | Delete
*/
[9] Fix | Delete
$fs = freemius( $VARS['id'] );
[10] Fix | Delete
[11] Fix | Delete
$slug = $fs->get_slug();
[12] Fix | Delete
[13] Fix | Delete
$sites = $VARS['sites'];
[14] Fix | Delete
$require_license_key = $VARS['require_license_key'];
[15] Fix | Delete
[16] Fix | Delete
$show_delegation_option = $fs->apply_filters( 'show_delegation_option', true );
[17] Fix | Delete
$enable_per_site_activation = $fs->apply_filters( 'enable_per_site_activation', true );
[18] Fix | Delete
?>
[19] Fix | Delete
<?php $separator = '<td>|</td>' ?>
[20] Fix | Delete
<div class="fs-multisite-options-container fs-apply-on-all-sites"<?php if ( ! $enable_per_site_activation )
[21] Fix | Delete
echo ' style="display: none;"' ?>>
[22] Fix | Delete
<table class="fs-all-sites-options">
[23] Fix | Delete
<tbody>
[24] Fix | Delete
<tr>
[25] Fix | Delete
<td width="600">
[26] Fix | Delete
<label>
[27] Fix | Delete
<?php
[28] Fix | Delete
if ( ! $fs->is_network_upgrade_mode() ) {
[29] Fix | Delete
$apply_checkbox_label = $require_license_key ?
[30] Fix | Delete
fs_text_inline( 'Activate license on all sites in the network.', 'activate-license-on-all-sites-in-the-network', $slug ) :
[31] Fix | Delete
fs_text_inline( 'Apply on all sites in the network.', 'apply-on-all-sites-in-the-network', $slug );
[32] Fix | Delete
} else {
[33] Fix | Delete
$apply_checkbox_label = $require_license_key ?
[34] Fix | Delete
fs_text_inline( 'Activate license on all pending sites.', 'activate-license-on-pending-sites-in-the-network', $slug ) :
[35] Fix | Delete
fs_text_inline( 'Apply on all pending sites.', 'apply-on-pending-sites-in-the-network', $slug );
[36] Fix | Delete
[37] Fix | Delete
}
[38] Fix | Delete
?>
[39] Fix | Delete
<input class="fs-apply-on-all-sites-checkbox" type="checkbox" value="true" checked><span><?php echo esc_html( $apply_checkbox_label ) ?></span>
[40] Fix | Delete
</label>
[41] Fix | Delete
</td>
[42] Fix | Delete
<?php if ( ! $require_license_key ) : ?>
[43] Fix | Delete
<td><a class="action action-allow" data-action-type="allow" href="#"><?php fs_esc_html_echo_inline( 'allow', 'allow', $slug ) ?></a></td>
[44] Fix | Delete
<?php echo $separator ?>
[45] Fix | Delete
<?php if ( $show_delegation_option ) : ?>
[46] Fix | Delete
<td><a class="action action-delegate" data-action-type="delegate" href="#"><?php fs_esc_html_echo_inline( 'delegate', 'delegate', $slug ) ?></a></td>
[47] Fix | Delete
<?php endif ?>
[48] Fix | Delete
<?php if ( $fs->is_enable_anonymous() ) : ?>
[49] Fix | Delete
<?php echo $separator ?>
[50] Fix | Delete
<td><a class="action action-skip" data-action-type="skip" href="#"><?php echo strtolower( fs_esc_html_inline( 'skip', 'skip', $slug ) ) ?></a></td>
[51] Fix | Delete
<?php endif ?>
[52] Fix | Delete
<?php endif ?>
[53] Fix | Delete
</tr>
[54] Fix | Delete
</tbody>
[55] Fix | Delete
</table>
[56] Fix | Delete
<div class="fs-sites-list-container">
[57] Fix | Delete
<table cellspacing="0">
[58] Fix | Delete
<tbody>
[59] Fix | Delete
<?php $site_props = array('uid', 'url', 'title', 'language') ?>
[60] Fix | Delete
<?php foreach ( $sites as $site ) : ?>
[61] Fix | Delete
<tr<?php if ( ! empty( $site['license_id'] ) ) {
[62] Fix | Delete
echo ' data-license-id="' . esc_attr( $site['license_id'] ) . '"';
[63] Fix | Delete
} ?>>
[64] Fix | Delete
<?php if ( $require_license_key ) : ?>
[65] Fix | Delete
<td><input type="checkbox" value="true" /></td>
[66] Fix | Delete
<?php endif ?>
[67] Fix | Delete
<td class="blog-id"><span><?php echo esc_html( $site['blog_id'] ) ?></span>.</td>
[68] Fix | Delete
<td width="600"><span><?php
[69] Fix | Delete
$url = str_replace( 'http://', '', str_replace( 'https://', '', $site['url'] ) );
[70] Fix | Delete
echo esc_html( $url );
[71] Fix | Delete
?></span>
[72] Fix | Delete
<?php foreach ($site_props as $prop) : ?>
[73] Fix | Delete
<input class="<?php echo esc_attr( $prop ) ?>" type="hidden" value="<?php echo esc_attr($site[$prop]) ?>" />
[74] Fix | Delete
<?php endforeach ?>
[75] Fix | Delete
</td>
[76] Fix | Delete
<?php if ( ! $require_license_key ) : ?>
[77] Fix | Delete
<td><a class="action action-allow selected" data-action-type="allow" href="#"><?php fs_esc_html_echo_inline( 'allow', 'allow', $slug ) ?></a></td>
[78] Fix | Delete
<?php echo $separator ?>
[79] Fix | Delete
<?php if ( $show_delegation_option ) : ?>
[80] Fix | Delete
<td><a class="action action-delegate" data-action-type="delegate" href="#"><?php fs_esc_html_echo_inline( 'delegate', 'delegate', $slug ) ?></a></td>
[81] Fix | Delete
<?php endif ?>
[82] Fix | Delete
<?php if ( $fs->is_enable_anonymous() ) : ?>
[83] Fix | Delete
<?php echo $separator ?>
[84] Fix | Delete
<td><a class="action action-skip" data-action-type="skip" href="#"><?php echo strtolower( fs_esc_html_inline( 'skip', 'skip', $slug ) ) ?></a></td>
[85] Fix | Delete
<?php endif ?>
[86] Fix | Delete
<?php endif ?>
[87] Fix | Delete
</tr>
[88] Fix | Delete
<?php endforeach ?>
[89] Fix | Delete
</tbody>
[90] Fix | Delete
</table>
[91] Fix | Delete
</div>
[92] Fix | Delete
</div>
[93] Fix | Delete
[94] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function