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...
File: sticky-admin-notice-js.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Sticky admin notices JavaScript handler for dismissing notice messages
[2] Fix | Delete
* by sending AJAX call to the server in order to remove the message from the Database.
[3] Fix | Delete
*
[4] Fix | Delete
* @package Freemius
[5] Fix | Delete
* @copyright Copyright (c) 2015, Freemius, Inc.
[6] Fix | Delete
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
[7] Fix | Delete
* @since 1.0.7
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[11] Fix | Delete
exit;
[12] Fix | Delete
}
[13] Fix | Delete
?>
[14] Fix | Delete
<script type="text/javascript" >
[15] Fix | Delete
jQuery( document ).ready(function( $ ) {
[16] Fix | Delete
$( '.fs-notice.fs-sticky .fs-close' ).click(function() {
[17] Fix | Delete
var
[18] Fix | Delete
notice = $( this ).parents( '.fs-notice' ),
[19] Fix | Delete
id = notice.attr( 'data-id' ),
[20] Fix | Delete
ajaxActionSuffix = notice.attr( 'data-manager-id' ).replace( ':', '-' );
[21] Fix | Delete
[22] Fix | Delete
notice.fadeOut( 'fast', function() {
[23] Fix | Delete
var data = {
[24] Fix | Delete
action : 'fs_dismiss_notice_action_' + ajaxActionSuffix,
[25] Fix | Delete
// As such we don't need to use `wp_json_encode` method but using it to follow wp.org guideline.
[26] Fix | Delete
_wpnonce : <?php echo wp_json_encode( wp_create_nonce( 'fs_dismiss_notice_action' ) ); ?>,
[27] Fix | Delete
message_id: id
[28] Fix | Delete
};
[29] Fix | Delete
[30] Fix | Delete
$.post( <?php echo Freemius::ajax_url() ?>, data, function( response ) {
[31] Fix | Delete
[32] Fix | Delete
});
[33] Fix | Delete
[34] Fix | Delete
notice.remove();
[35] Fix | Delete
});
[36] Fix | Delete
});
[37] Fix | Delete
});
[38] Fix | Delete
</script>
[39] Fix | Delete
[40] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function