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

@ -6,11 +6,11 @@
*/
?>
<h1>
<?php _e('We are almost there!', 'wp-multisite-waas'); ?>
<?php esc_html_e('We are almost there!', 'wp-multisite-waas'); ?>
</h1>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('You should have all the information we need in hand right now. The next step is to configure it.', 'wp-multisite-waas'); ?>
<?php esc_html_e('You should have all the information we need in hand right now. The next step is to configure it.', 'wp-multisite-waas'); ?>
</p>
<div class="wu-mt-6">
@ -20,19 +20,19 @@
<li class="wu-flex wu-rounded wu-content-center wu-py-2 wu-px-4 wu-bg-gray-100 wu-border wu-border-solid wu-border-gray-300 wu-m-0">
<span class="dashicons dashicons-yes-alt wu-text-green-400 wu-self-center wu-mr-2"></span>
<span>
<?php _e('All set! We have made all the adjustments to and the Integration should work.', 'wp-multisite-waas'); ?>
<?php esc_html_e('All set! We have made all the adjustments to and the Integration should work.', 'wp-multisite-waas'); ?>
</span>
</li>
<?php else : ?>
<li class="wu-flex wu-rounded wu-content-center wu-py-2 wu-px-4 wu-bg-gray-100 wu-border wu-border-solid wu-border-gray-300 wu-m-0">
<span><?php _e('You will need to edit your wp-config.php file manually. Copy the contents of the box below and paste it on your wp-config.php file, right before the line containing <code>/* That\'s all, stop editing! Happy publishing. */</code>', 'wp-multisite-waas'); ?></span>
<span><?php esc_html_e('You will need to edit your wp-config.php file manually. Copy the contents of the box below and paste it on your wp-config.php file, right before the line containing:', 'wp-multisite-waas'); ?> <code>/* That\'s all, stop editing! Happy publishing. */</code></span>
</li>
<h3 class="wu-mt-6"><?php _e('Your wp-config.php settings:', 'wp-multisite-waas'); ?></h3>
<h3 class="wu-mt-6"><?php esc_html_e('Your wp-config.php settings:', 'wp-multisite-waas'); ?></h3>
<pre class="wu-overflow-auto wu-p-4 wu-rounded wu-content-center wu-bg-gray-800 wu-text-white wu-font-mono wu-border wu-border-solid wu-border-gray-300"><?php echo $integration->get_constants_string($post); ?></pre>
<pre class="wu-overflow-auto wu-p-4 wu-rounded wu-content-center wu-bg-gray-800 wu-text-white wu-font-mono wu-border wu-border-solid wu-border-gray-300"><?php echo esc_html($integration->get_constants_string($post)); ?></pre>
<?php endif; ?>
@ -41,12 +41,12 @@
<!-- Submit Box -->
<div class="wu-flex wu-justify-between wu-bg-gray-100 wu--m-in wu-mt-4 wu-p-4 wu-overflow-hidden wu-border-t wu-border-solid wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300">
<a href="<?php echo esc_url(wu_network_admin_url('wp-ultimo-settings&tab=integrations')); ?>" class="wu-self-center button button-large wu-float-left"><?php _e('&larr; Cancel', 'wp-multisite-waas'); ?></a>
<a href="<?php echo esc_url(wu_network_admin_url('wp-ultimo-settings&tab=integrations')); ?>" class="wu-self-center button button-large wu-float-left"><?php esc_html_e('&larr; Cancel', 'wp-multisite-waas'); ?></a>
<span class="wu-self-center wu-content-center wu-flex">
<button name="submit" value="3" class="wu-ml-2 button button-primary button-large">
<?php _e('Test Integration &rarr;', 'wp-multisite-waas'); ?>
<?php esc_html_e('Test Integration &rarr;', 'wp-multisite-waas'); ?>
</button>
</span>