* 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
668 B
JavaScript
2 lines
668 B
JavaScript
(()=>{var e=(e=>{var n=e+"=",i=document.cookie.split(";");for(let t=0;t<i.length;t++){let e=i[t];for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(n))return e.substring(n.length,e.length)}return null})("WUVISIT");if("1"!==e){let e=async()=>{var e=new URL(wu_visits_counter.ajaxurl);e.searchParams.set("action","wu_count_visits"),e.searchParams.set("code",wu_visits_counter.code),await fetch(e),((e,t,n)=>{let i;var r;i=n?((r=new Date).setTime(r.getTime()+24*n*60*60*1e3),"; expires="+r.toUTCString()):"",document.cookie=e+"="+t+i+"; path=/"})("WUVISIT","1",1)};document.addEventListener("DOMContentLoaded",()=>{setTimeout(function(){e()},1e4)})}})();
|