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 @@
jQuery(document).ready((function(){const e=function(e){e=e.replace(wp.i18n.__("Generating preview…"),wu_gutenberg.replacement_message);const t='<img class="wu-logo" src="'+wu_gutenberg.logo+'"><p>';return e=e.replace("<p>",t),e+="<style> svg { display: none !important; } img.wu-logo { opacity: 0; animation: fade-in-right ease 1s forwards; max-width: 100px; height: auto; padding: 20px; } @keyframes fade-in-right { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } } </style>"};"object"==typeof wp&&"object"==typeof wp.hooks&&wp.hooks.addFilter("editor.PostPreview.interstitialMarkup","wp-ultimo/custom-preview-message",e)}));
jQuery(document).ready(function(){"object"==typeof wp&&"object"==typeof wp.hooks&&wp.hooks.addFilter("editor.PostPreview.interstitialMarkup","wp-ultimo/custom-preview-message",function(e){e=e.replace(wp.i18n.__("Generating preview…"),wu_gutenberg.replacement_message);var t='<img class="wu-logo" src="'+wu_gutenberg.logo+'"><p>';return e=e.replace("<p>",t),e+="<style> svg { display: none !important; } img.wu-logo { opacity: 0; animation: fade-in-right ease 1s forwards; max-width: 100px; height: auto; padding: 20px; } @keyframes fade-in-right { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } } </style>"})});