Prep Plugin for release on WordPress.org

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.
This commit is contained in:
David Stone
2025-04-07 09:15:21 -06:00
parent f05ab77418
commit a815fdf179
290 changed files with 2999 additions and 3269 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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?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-multisite-waas'); ?>
<?php esc_html_e('Dismiss', 'wp-multisite-waas'); ?>
</button>
</div>