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.../js
File: jquery.content-change.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package Freemius
[2] Fix | Delete
* @copyright Copyright (c) 2015, Freemius, Inc.
[3] Fix | Delete
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
[4] Fix | Delete
* @since 1.2.2.7
[5] Fix | Delete
*/
[6] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[7] Fix | Delete
exit;
[8] Fix | Delete
}
[9] Fix | Delete
?>
[10] Fix | Delete
<script type="text/javascript">
[11] Fix | Delete
(function ($) {
[12] Fix | Delete
if ($.fn.contentChange)
[13] Fix | Delete
return;
[14] Fix | Delete
[15] Fix | Delete
/**
[16] Fix | Delete
* Content change event listener.
[17] Fix | Delete
*
[18] Fix | Delete
* @url http://stackoverflow.com/questions/3233991/jquery-watch-div/3234646#3234646
[19] Fix | Delete
*
[20] Fix | Delete
* @param {function} callback
[21] Fix | Delete
*
[22] Fix | Delete
* @returns {object[]}
[23] Fix | Delete
*/
[24] Fix | Delete
$.fn.contentChange = function (callback) {
[25] Fix | Delete
var elements = $(this);
[26] Fix | Delete
[27] Fix | Delete
elements.each(function () {
[28] Fix | Delete
var element = $(this);
[29] Fix | Delete
[30] Fix | Delete
element.data("lastContents", element.html());
[31] Fix | Delete
[32] Fix | Delete
window.watchContentChange = window.watchContentChange ?
[33] Fix | Delete
window.watchContentChange :
[34] Fix | Delete
[];
[35] Fix | Delete
[36] Fix | Delete
window.watchContentChange.push({
[37] Fix | Delete
"element" : element,
[38] Fix | Delete
"callback": callback
[39] Fix | Delete
});
[40] Fix | Delete
});
[41] Fix | Delete
[42] Fix | Delete
return elements;
[43] Fix | Delete
};
[44] Fix | Delete
[45] Fix | Delete
setInterval(function() {
[46] Fix | Delete
if ( window.watchContentChange ) {
[47] Fix | Delete
for ( var i in window.watchContentChange ) {
[48] Fix | Delete
if ( window.watchContentChange[ i ].element.data( 'lastContents' ) !== window.watchContentChange[ i ].element.html() ) {
[49] Fix | Delete
window.watchContentChange[ i ].callback.apply( undefined, [ false ] );
[50] Fix | Delete
window.watchContentChange[ i ].element.data( 'lastContents', window.watchContentChange[ i ].element.html() )
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
}
[54] Fix | Delete
}, 500 );
[55] Fix | Delete
})(jQuery);
[56] Fix | Delete
</script>
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function