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

@ -17,12 +17,12 @@
<li class="wu-inline-block wu-mx-1">
<a href="<?php echo wu_network_admin_url('wp-ultimo-system-info'); ?>" class="wu-text-gray-500 hover:wu-text-gray-600">
<?php _e('System Info', 'wp-multisite-waas'); ?>
<?php esc_html_e('System Info', 'wp-multisite-waas'); ?>
</a>
</li>
<li class="wu-inline-block wu-mx-1">
<a href="<?php echo wu_network_admin_url('wp-ultimo-shortcodes'); ?>" class="wu-text-gray-500 hover:wu-text-gray-600">
<?php _e('Available Shortcodes', 'wp-multisite-waas'); ?>
<?php esc_html_e('Available Shortcodes', 'wp-multisite-waas'); ?>
</a>
</li>
@ -32,7 +32,7 @@
<li class="wu-inline-block wu-mx-1">
<a href="<?php echo wu_network_admin_url('wp-ultimo-settings'); ?>" class="wu-text-gray-500 hover:wu-text-gray-600">
<?php _e('Settings', 'wp-multisite-waas'); ?>
<?php esc_html_e('Settings', 'wp-multisite-waas'); ?>
</a>
</li>
@ -42,7 +42,7 @@
<li class="wu-inline-block wu-mx-1">
<a href="<?php echo wu_network_admin_url('wp-ultimo-jobs'); ?>" class="wu-text-gray-500 hover:wu-text-gray-600">
<?php _e('Job Queue', 'wp-multisite-waas'); ?>
<?php esc_html_e('Job Queue', 'wp-multisite-waas'); ?>
</a>
</li>

View File

@ -7,7 +7,7 @@
?>
<small>
<strong>
<a id="wu-container-toggle" role="tooltip" aria-label='<?php _e('Toggle container', 'wp-multisite-waas'); ?>' href="#" class="wu-tooltip wu-inline-block wu-py-1 wu-pl-2 md:wu-pr-3 wu-uppercase wu-text-gray-600 wu-no-underline">
<a id="wu-container-toggle" role="tooltip" aria-label='<?php esc_html_e('Toggle container', 'wp-multisite-waas'); ?>' href="#" class="wu-tooltip wu-inline-block wu-py-1 wu-pl-2 md:wu-pr-3 wu-uppercase wu-text-gray-600 wu-no-underline">
<span title="<?php esc_attr_e('Boxed', 'wp-multisite-waas'); ?>" class="wu-use-container dashicons dashicons-wu-arrow-with-circle-left wu-text-sm wu-w-auto wu-h-auto wu-align-text-bottom wu-relative"></span>
<span class="wu-font-bold wu-use-container">

View File

@ -24,7 +24,7 @@
<option value="<?php echo network_admin_url('?wu-rebuild-jumper=1'); ?>">
<?php _e('Click to rebuild menu list', 'wp-multisite-waas'); ?>
<?php esc_html_e('Click to rebuild menu list', 'wp-multisite-waas'); ?>
</option>
@ -91,13 +91,13 @@
<div class="wu-jumper-redirecting wu-bg-gray-200">
<?php _e('Redirecting you to the target page...', 'wp-multisite-waas'); ?>
<?php esc_html_e('Redirecting you to the target page...', 'wp-multisite-waas'); ?>
</div>
<div class="wu-jumper-loading wu-bg-gray-200">
<?php _e('Searching Results...', 'wp-multisite-waas'); ?>
<?php esc_html_e('Searching Results...', 'wp-multisite-waas'); ?>
</div>

View File

@ -180,7 +180,7 @@
<span class="wu-block">{{ text }}</span>
<small><?php _e('Network Admin', 'wp-multisite-waas'); ?> &rarr; {{ group }}</small>
<small><?php esc_html_e('Network Admin', 'wp-multisite-waas'); ?> &rarr; {{ group }}</small>
</div>
@ -216,7 +216,7 @@
<span class="wu-block">{{ domain }}</span>
<small><?php _e('Mapped Domain', 'wp-multisite-waas'); ?></small>
<small><?php esc_html_e('Mapped Domain', 'wp-multisite-waas'); ?></small>
</div>
@ -324,7 +324,7 @@
<div class="wu-p-4 wu-block wu-flex wu-items-center">
<?php _e('Nothing Found...', 'wp-multisite-waas'); ?>
<?php esc_html_e('Nothing Found...', 'wp-multisite-waas'); ?>
</div>

View File

@ -18,7 +18,7 @@
if ( ! defined('ABSPATH')) {
exit; // Exit if accessed directly
} // end if;
}
/**
* Allow developers to run code before the template previewer is loaded.
@ -85,7 +85,7 @@ do_action('wu_template_previewer_before');
<a id="template_selector" href="#">
<?php _e('Select template...', 'wp-multisite-waas'); ?>
<?php esc_html_e('Select template...', 'wp-multisite-waas'); ?>
<span style="float: right; margin-top: -3px" class="dashicons dashicons-arrow-down-alt2"></span>
@ -202,7 +202,7 @@ do_action('wu_template_previewer_before');
<div class="wu-text-xl wu-rounded wu-font-bold wu-uppercase wu-inline-block wu-p-8 wu-opacity-50" style="margin-top: 62px; background-color: #000; color: #666;">
<?php _e('Site Template Preview will go here!', 'wp-multisite-waas'); ?>
<?php esc_html_e('Site Template Preview will go here!', 'wp-multisite-waas'); ?>
</div>

View File

@ -102,7 +102,7 @@ if (typeof jQuery !== 'undefined') {
});
});
})(jQuery);
} // end if;
}
</script>
<style>