Prep Plugin for release on WordPress.org (#23)

* 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
This commit is contained in:
David Stone
2025-04-14 11:36:46 -06:00
committed by GitHub
parent a31cfcb565
commit d88e50df38
1087 changed files with 12586 additions and 18535 deletions

View File

@ -1 +1 @@
!function(e){window.addEventListener("message",(function(t){let a;"wu_preview_changed"===t.data&&(a=wu_block_ui("#preview_content")),e("#preview-stage-iframe").on("load",(function(){a&&a.unblock()}))}),!1),e(document).ready((function(){new Vue({el:"#preview-stage",data:()=>({preview:!1})});e("[data-wu-customizer-panel]").each((function(){const t=e(this),a="wu_"+t.data("wu-app");wp.hooks.addAction(a+"_changed","nextpress/wp-ultimo",(function(n){if("tab"===n)return;const i=jQuery.param(window[a].$data),r=t.find("input").serialize(),o=e("#preview-stage-iframe").attr("data-src");e("#preview-stage-iframe").attr("src",o+"&"+i+"&"+r)}))}))}))}(jQuery);
(r=>{window.addEventListener("message",function(e){let a;"wu_preview_changed"===e.data&&(a=wu_block_ui("#preview_content")),r("#preview-stage-iframe").on("load",function(){a&&a.unblock()})},!1),r(document).ready(function(){new Vue({el:"#preview-stage",data(){return{preview:!1}}});r("[data-wu-customizer-panel]").each(function(){let n=r(this),i="wu_"+n.data("wu-app");wp.hooks.addAction(i+"_changed","nextpress/wp-ultimo",function(e){var a,t;"tab"!==e&&(e=jQuery.param(window[i].$data),a=n.find("input").serialize(),t=r("#preview-stage-iframe").attr("data-src"),r("#preview-stage-iframe").attr("src",t+"&"+e+"&"+a))})})})})(jQuery);