* Update translation text domain * Escape everything that should be escaped. * Add nonce checks where needed. * Sanitize all inputs. * Apply Code style changes across the codebase. * Correct many deprecation notices. * Optimize load order of many filters. * Add Proper Build script * Use emojii flags * Fix i18n deprecation notice for translating too early * Put all scripts in footer and load async
2 lines
640 B
JavaScript
2 lines
640 B
JavaScript
window.wu_create_cookie=function(e,o,n){let t;var i;t=n?((i=new Date).setTime(i.getTime()+24*n*60*60*1e3),"; expires="+i.toGMTString()):"",document.cookie=e+"="+o+t+"; path=/"},window.wu_read_cookie=function(e){var n=e+"=",t=document.cookie.split(";");for(let o=0;o<t.length;o++){let e=t[o];for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(n))return e.substring(n.length,e.length)}return null},window.wu_erase_cookie=function(e){window.wu_create_cookie(e,"",-1)},window.wu_listen_to_cookie_change=function(o,n){let t=window.wu_read_cookie(o);setInterval(function(){var e=window.wu_read_cookie(o);e!==t&&(t=e,n(t))},100)};
|