: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @copyright Copyright (c) 2015, Freemius, Inc.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
if ( ! defined( 'ABSPATH' ) ) {
$fs = freemius( $VARS['id'] );
<script type="text/javascript">
$(document).ready(function () {
var $wrap = $( '.wrap' );
if ( 0 === $wrap.length ) {
$wrap = $( '<div class="wrap">' );
$wrap.insertBefore( $( '#wpbody-content .clear' ) );
$wrap = $wrap.clone().wrap( '<div>' ).parent();
settingHtml = $wrap.html(),
tabsPosition = settingHtml.indexOf('nav-tab-wrapper'),
// Find the tabs HTML beginning exact position.
while ('<' !== settingHtml[tabsPosition] && 0 < tabsPosition) {
aboveTabsHtml = settingHtml.substr(0, tabsPosition);
var tabsHtml = $('.wrap .nav-tab-wrapper').clone().wrap('<div>').parent().html(),
ajaxUrl = <?php echo Freemius::ajax_url() ?>;
url : ajaxUrl + (ajaxUrl.includes('?') ? '&' : '?') + $.param({
action : '<?php echo $fs->get_ajax_action( 'store_tabs' ) ?>',
security : '<?php echo $fs->get_ajax_security( 'store_tabs' ) ?>',
module_id: '<?php echo $fs->get_id() ?>'
data : aboveTabsHtml + "\n" + tabsHtml + '</div>',
// Avoid escaping the HTML.