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

@ -20,7 +20,7 @@
<h3 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
<?php echo $title; ?>
<?php echo esc_html($title); ?>
</h3>
@ -34,7 +34,7 @@
href="<?php echo $update_billing_address_link; ?>"
>
<?php _e('Update', 'wp-multisite-waas'); ?>
<?php esc_html_e('Update', 'wp-multisite-waas'); ?>
</a>
@ -49,7 +49,7 @@
<div class="wu-p-4 wu-bg-gray-100 wu-rounded">
<?php printf(__('No billing address found. Click <a title="%1$s" href="%2$s" class="wubox wu-no-underline">here</a> to add one.', 'wp-multisite-waas'), __('Update Billing Address', 'wp-multisite-waas'), $update_billing_address_link); ?>
<?php printf(wp_kses_post(__('No billing address found. Click <a title="%1$s" href="%2$s" class="wubox wu-no-underline">here</a> to add one.', 'wp-multisite-waas')), esc_html__('Update Billing Address', 'wp-multisite-waas'), esc_url($update_billing_address_link)); ?>
</div>
@ -66,10 +66,10 @@
<div class="sm:wu-divide-y sm:wu-divide-gray-200">
<div class="wu-py-4 sm:wu-grid sm:wu-grid-cols-3 sm:wu-gap-4 sm:wu-px-4">
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
<?php echo $label; ?>
<?php echo esc_html($label); ?>
</div>
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 sm:wu-mt-0 sm:wu-col-span-2">
<?php echo $value; ?>
<?php echo esc_html($value); ?>
</div>
</div>
</div>
@ -113,7 +113,7 @@
href="<?php echo $update_billing_address_link; ?>"
>
<?php _e('Update', 'wp-multisite-waas'); ?>
<?php esc_html_e('Update', 'wp-multisite-waas'); ?>
</a>