: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
$(document).ready(function($) {
/* Social widget handlers */
$("body").on("click", "a.mks_add_social", function(e) {
var widget_holder = $(this).closest('.widget-inside');
var cloner = widget_holder.find('.mks_social_clone');
widget_holder.find('.mks_social_container').append('<li>' + cloner.html() + '</li>');
$(this).trigger('change');
$("body").on("click", ".mks-remove-social", function(e) {
var delete_item = confirm('Are you sure you want to delete this icon?');
delete_item ? $(this).closest('li').remove() : '';
$('.mks-social-sortable').trigger('change');
$("body").on("mousedown", ".mks-social-sortable li", function(e) {
$('.mks-social-sortable').trigger('change');
$(document).on('widget-added', function(e) {
$(document).on('widget-updated', function(e) {
function mks_social_sortable() {
$(".mks-social-sortable").sortable({
placeholder: "mks-social-sortable-drop"