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

@ -12,11 +12,11 @@
<div class="wu-w-full sm:wu-w-8/12">
<span class="wu-block wu-my-1 wu-text-base wu-font-semibold wu-text-gray-700">
<?php _e('Your network is taking shape!', 'wp-ultimo'); ?>
<?php esc_html_e('Your network is taking shape!', 'wp-multisite-waas'); ?>
</span>
<span class="wu-block wu-my-1 wu-text-gray-600">
<?php _e('Here are the next steps to keep you on that streak!', 'wp-ultimo'); ?>
<?php esc_html_e('Here are the next steps to keep you on that streak!', 'wp-multisite-waas'); ?>
</span>
</div>
@ -24,7 +24,7 @@
<div class="wu-w-4/12 wu-text-right wu-hidden sm:wu-inline-block">
<span class="wu-inline-block wu-bg-green-100 wu-text-center wu-align-middle wu-p-2 wu-font-mono wu-px-3 wu-border wu-border-green-300 wu-text-green-700 wu-border-solid wu-rounded">
<?php echo $percentage . '% ' . __('done', 'wp-ultimo'); ?>
<?php echo esc_html($percentage) . '% ' . esc_html__('done', 'wp-multisite-waas'); ?>
</span>
</div>
@ -41,7 +41,7 @@
<div>
<span class="wu-hidden sm:wu-inline-block wu-mr-4 wu-bg-white wu-text-center wu-align-middle wu-p-1 wu-font-mono wu-px-3 wu-border wu-border-gray-300 wu-border-solid wu-rounded">
<?php echo $index; ?>
<?php echo esc_html($index); ?>
</span>
</div>
@ -49,7 +49,7 @@
<span class="wu-block wu-my-1 wu-font-semibold wu-text-gray-700">
<span class="<?php echo $step['done'] ? 'wu-line-through' : ''; ?>"><?php echo $step['title']; ?></span>
<span class="<?php echo $step['done'] ? 'wu-line-through' : ''; ?>"><?php echo esc_html($step['title']); ?></span>
<?php if ($step['done']) : ?>
@ -59,7 +59,7 @@
</span>
<span class="wu-block wu-my-1 wu-text-gray-600 <?php echo $step['done'] ? 'wu-line-through' : ''; ?>"><?php echo $step['desc']; ?></span>
<span class="wu-block wu-my-1 wu-text-gray-600 <?php echo $step['done'] ? 'wu-line-through' : ''; ?>"><?php echo esc_html($step['desc']); ?></span>
</div>
@ -68,7 +68,7 @@
<div class="wu-block sm:wu-hidden wu-h-2">&nbsp;</div>
<a href="<?php echo $step['action_link']; ?>" class="button wu-w-full sm:wu-w-auto wu-text-center">
<?php echo $step['action_label']; ?>
<?php echo esc_html($step['action_label']); ?>
</a>
</div>
@ -92,7 +92,7 @@ endforeach;
class="button wu-text-center hide-postbox-tog"
id="wp-ultimo-setup-hide"
>
<?php _e('Dismiss', 'wp-ultimo'); ?>
<?php esc_html_e('Dismiss', 'wp-multisite-waas'); ?>
</button>
</div>