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

@ -51,7 +51,7 @@
)
);
?>
<?php echo $user->display_name; ?>
<?php echo esc_html($user->display_name); ?>
</div>

View File

@ -13,7 +13,7 @@
<span class="wu-self-center wu-blinking-animation wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
<?php echo _e('Loading Preview...', 'wp-multisite-waas'); ?>
<?php esc_html_e('Loading Preview...', 'wp-multisite-waas'); ?>
</span>
@ -31,7 +31,7 @@
<span class="wu-text-gray-600 wu-my-1 wu-text-2xs wu-uppercase wu-font-semibold">
<?php echo __('Template Preview', 'wp-multisite-waas'); ?>
<?php echo esc_html__('Template Preview', 'wp-multisite-waas'); ?>
</span>

View File

@ -28,7 +28,7 @@
<div class="wu-p-12 wu-h-12 wu--mt-1 wu--mx-3 wu--mb-3 wu-bg-gray-100 wu-text-gray-500 wu-text-xs wu-text-center">
<span class="dashicons dashicons-warning wu-h-8 wu-w-8 wu-mx-auto wu-text-center wu-text-4xl wu-block"></span>
<span class="wu-block wu-text-sm wu-mt-2">
<?php printf(__('%s will show up here once this item is saved.', 'wp-multisite-waas'), $title); ?>
<?php printf(esc_html__('%s will show up here once this item is saved.', 'wp-multisite-waas'), esc_html($title)); ?>
</span>
</div>

View File

@ -8,7 +8,7 @@
<?php if ( ! empty($labels['save_description'])) : ?>
<p class="wu-mb-5">
<?php echo $labels['save_description']; ?>
<?php echo wp_kses_post($labels['save_description']); ?>
</p>
<?php endif; ?>
@ -16,7 +16,7 @@
<div class="wu-bg-gray-200 wu-p-4 wu--m-3 wu--mt-2 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
<button type="submit" name="action" value="save" class="button button-primary wu-w-full">
<?php echo $labels['save_button_label']; ?>
<?php echo esc_html($labels['save_button_label']); ?>
</button>
</div>

View File

@ -33,7 +33,7 @@
<span class="wu-text-base wu-w-4 wu-h-4 wu-pt-2px wu-mr-1 dashicons dashicons-wu-chevron-with-circle-down">&nbsp;</span>
<?php _e('All Options', 'wp-multisite-waas'); ?>
<?php esc_html_e('All Options', 'wp-multisite-waas'); ?>
</a>
<!-- End Menu Link -->
@ -63,7 +63,7 @@
<?php endif; ?>
<?php echo $section['title']; ?>
<?php echo esc_html($section['title']); ?>
</a>
<!-- End Menu Link -->
@ -79,13 +79,13 @@
<span v-show="!display_all">
<?php _e('Display all fields', 'wp-multisite-waas'); ?>
<?php esc_html_e('Display all fields', 'wp-multisite-waas'); ?>
</span>
<span v-cloak v-show="display_all">
<?php _e('Hide other fields', 'wp-multisite-waas'); ?>
<?php esc_html_e('Hide other fields', 'wp-multisite-waas'); ?>
</span>
@ -101,7 +101,7 @@
<span class="wu-blinking-animation">
<?php _e('Loading...', 'wp-multisite-waas'); ?>
<?php esc_html_e('Loading...', 'wp-multisite-waas'); ?>
</span>