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
.phpcs.xml.dist
assets
inc
admin-pages
api
checkout
class-admin-notices.phpclass-ajax.phpclass-api.phpclass-async-calls.phpclass-dashboard-widgets.phpclass-domain-mapping.phpclass-faker.phpclass-helper.phpclass-light-ajax.phpclass-logger.phpclass-maintenance-mode.phpclass-newsletter.phpclass-requirements.phpclass-session-cookie.phpclass-settings.phpclass-sunrise.phpclass-views.phpclass-whitelabel.php
debug
development
functions
gateways
helpers
integrations
limitations
limits
list-tables
managers
models
tax
ui
setuptest.shsunrise.php
views
about.phpadmin-notices.php
admin-pages
base
broadcast
checkout
customers
dashboard-statistics
dashboard-widgets
domain
email
emails
events
invoice
legacy
limitations
memberships
payments
settings
shortcodes
sites
system-info
taxes
ui
wizards

@@ -12,23 +12,24 @@
<span class="dashicons dashicons-yes-alt wu-text-green-400 wu-w-auto wu-h-auto wu-text-5xl wu-mb-2"></span>
<h1 class="wu-text-gray-800">
<?php printf(__('We are ready, %s!', 'wp-multisite-waas'), apply_filters('wu_setup_step_done_name', $page->customer->first ?? __('my friend', 'wp-multisite-waas'))); ?>
<?php // translators: %s customer's name ?>
<?php echo esc_html(sprintf(__('We are ready, %s!', 'wp-multisite-waas'), apply_filters('wu_setup_step_done_name', $page->customer->first ?? __('my friend', 'wp-multisite-waas')))); ?>
</h1>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('WP Multisite WaaS would not be possible without the work of <a href="https://wpultimo.com/" target="_blank">Arindo Duque</a> and <a href="https://nextpress.co" target="_blank">NextPress</a>.', 'wp-multisite-waas'); ?>
<?php esc_html_e('WP Multisite WaaS would not be possible without the work of <a href="https://wpultimo.com/" target="_blank">Arindo Duque</a> and <a href="https://nextpress.co" target="_blank">NextPress</a>.', 'wp-multisite-waas'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('WP Multisite WaaS is maintained by volunteer open source developers. Please consider sponsoring the project on <a href="https://github.com/superdav42/wp-multisite-waas" target="_blank">GitHub</a>', 'wp-multisite-waas'); ?>
<?php esc_html_e('WP Multisite WaaS is maintained by volunteer open source developers. Please consider sponsoring the project on <a href="https://github.com/superdav42/wp-multisite-waas" target="_blank">GitHub</a>', 'wp-multisite-waas'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('Paid support is available. Go to <a href="https://wpmultisitewaas.org/support" target="_blank">The Support Page</a> to find an expert who can assist in setting up WP Multisite WaaS or custom development.', 'wp-multisite-waas'); ?>
<?php esc_html_e('Paid support is available. Go to <a href="https://wpmultisitewaas.org/support" target="_blank">The Support Page</a> to find an expert who can assist in setting up WP Multisite WaaS or custom development.', 'wp-multisite-waas'); ?>
</p>
<p class="wu-text-lg wu-text-gray-600 wu-my-4">
<?php _e('You now have everything you need in place to start building your Website as a Service business!', 'wp-multisite-waas'); ?>
<?php esc_html_e('You now have everything you need in place to start building your Website as a Service business!', 'wp-multisite-waas'); ?>
</p>
<p>
@@ -46,7 +47,7 @@
<span class="wu-float-right">
<a href="<?php echo esc_url(network_admin_url('index.php')); ?>" class="button button-primary button-large">
<?php _e('Thanks!', 'wp-multisite-waas'); ?>
<?php esc_html_e('Thanks!', 'wp-multisite-waas'); ?>
</a>
</span>