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){e(document).ready((function(){e("body").on("click","#wu-admin-screen-customize",(function(){wu_block_ui("#wpcontent")}));const n=e("body").hasClass("wu-customize-admin-screen");let s=`<a id="wu-admin-screen-customize" href="${wu_admin_screen.customize_link}" class="button show-settings">${wu_admin_screen.i18n.customize_label}</button>`;const t=`<a title="${wu_admin_screen.i18n.page_customize_label}" id="wu-admin-screen-page-customize" href="${wu_admin_screen.page_customize_link}" class="wubox button show-settings">${wu_admin_screen.i18n.page_customize_label}</button>`;n?s=`<a id="wu-admin-screen-customize" href="${wu_admin_screen.close_link}" class="button show-settings wu-font-medium"><span class="wu-text-sm wu-align-text-bottom wu-text-red-500 wu-mr-2 wu--ml-1 dashicons-wu-circle-with-cross"></span>${wu_admin_screen.i18n.close_label}</button>`:e(t).prependTo("#screen-options-link-wrap"),e(s).appendTo("#screen-options-link-wrap")}))}(jQuery);
(i=>{i(document).ready(function(){i("body").on("click","#wu-admin-screen-customize",function(){wu_block_ui("#wpcontent")});var e=i("body").hasClass("wu-customize-admin-screen");let n=`<a id="wu-admin-screen-customize" href="${wu_admin_screen.customize_link}" class="button show-settings">${wu_admin_screen.i18n.customize_label}</button>`;var s=`<a title="${wu_admin_screen.i18n.page_customize_label}" id="wu-admin-screen-page-customize" href="${wu_admin_screen.page_customize_link}" class="wubox button show-settings">${wu_admin_screen.i18n.page_customize_label}</button>`;e?n=`<a id="wu-admin-screen-customize" href="${wu_admin_screen.close_link}" class="button show-settings wu-font-medium"><span class="wu-text-sm wu-align-text-bottom wu-text-red-500 wu-mr-2 wu--ml-1 dashicons-wu-circle-with-cross"></span>${wu_admin_screen.i18n.close_label}</button>`:i(s).prependTo("#screen-options-link-wrap"),i(n).appendTo("#screen-options-link-wrap")})})(jQuery);