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:
@ -108,8 +108,8 @@ class Checkout_Pages {
|
||||
|
||||
<div class="misc-pub-section misc-pub-section-last" style="margin-top: 12px; margin-bottom: 6px; display: flex; align-items: center;">
|
||||
<label for="wu-compat-mode">
|
||||
<span style="display: block; font-weight: 600; margin-bottom: 3px;"><?php _e('WP Multisite WaaS Compatibility Mode', 'wp-multisite-waas'); ?></span>
|
||||
<small style="display: block; line-height: 1.8em;"><?php _e('Toggle this option on if WP Multisite WaaS elements are not loading correctly or at all.', 'wp-multisite-waas'); ?></small>
|
||||
<span style="display: block; font-weight: 600; margin-bottom: 3px;"><?php esc_html_e('WP Multisite WaaS Compatibility Mode', 'wp-multisite-waas'); ?></span>
|
||||
<small style="display: block; line-height: 1.8em;"><?php esc_html_e('Toggle this option on if WP Multisite WaaS elements are not loading correctly or at all.', 'wp-multisite-waas'); ?></small>
|
||||
</label>
|
||||
<div style="margin-left: 6px;">
|
||||
<input id="wu-compat-mode" type="checkbox" value="1" <?php checked($value, true, true); ?> name="_wu_force_elements_loading" />
|
||||
@ -243,7 +243,7 @@ class Checkout_Pages {
|
||||
wp_login_url()
|
||||
);
|
||||
|
||||
wp_redirect($url);
|
||||
wp_safe_redirect($url);
|
||||
|
||||
exit;
|
||||
}
|
||||
@ -263,7 +263,7 @@ class Checkout_Pages {
|
||||
public function maybe_redirect_to_confirm_screen(): void {
|
||||
|
||||
if (wu_request('redirect_to')) {
|
||||
wp_redirect(wu_request('redirect_to'));
|
||||
wp_safe_redirect(wu_request('redirect_to'));
|
||||
|
||||
exit;
|
||||
}
|
||||
@ -395,7 +395,7 @@ class Checkout_Pages {
|
||||
return;
|
||||
}
|
||||
|
||||
wp_redirect($redirect_to);
|
||||
wp_safe_redirect($redirect_to);
|
||||
|
||||
exit;
|
||||
}
|
||||
@ -472,7 +472,7 @@ class Checkout_Pages {
|
||||
|
||||
die;
|
||||
} else {
|
||||
wp_redirect($new_login_url);
|
||||
wp_safe_redirect($new_login_url);
|
||||
|
||||
exit;
|
||||
}
|
||||
@ -489,7 +489,7 @@ class Checkout_Pages {
|
||||
$registration_url = $this->get_page_url('register');
|
||||
|
||||
if ($registration_url) {
|
||||
wp_redirect($registration_url);
|
||||
wp_safe_redirect($registration_url);
|
||||
|
||||
exit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user