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 committed 2025-04-07 09:15:21 -06:00
1 parent f05ab77418
commit a815fdf179
290 files changed
+2999 -3269

No files matched your search

+3 -3
View File
@@ -33,7 +33,7 @@ $plan_attrs = '';
foreach ([1, 3, 12] as $type) {
$price = $plan->free ? __('Free!', 'wp-multisite-waas') : str_replace(wu_get_currency_symbol(), '', wu_format_currency((((float) $plan->{'price_' . $type}) / $type)));
$plan_attrs .= " data-price-$type='$price'";
} // end foreach;
}
$plan_attrs = apply_filters('wu_pricing_table_plan', $plan_attrs, $plan);
@@ -53,7 +53,7 @@ $plan_attrs = apply_filters('wu_pricing_table_plan', $plan_attrs, $plan);
<?php if ($plan->is_free()) : ?>
<h5>
<span class="plan-price"><?php _e('Free!', 'wp-multisite-waas'); ?></span>
<span class="plan-price"><?php esc_html_e('Free!', 'wp-multisite-waas'); ?></span>
</h5>
<?php elseif ($plan->is_contact_us()) : ?>
@@ -101,7 +101,7 @@ $plan_attrs = apply_filters('wu_pricing_table_plan', $plan_attrs, $plan);
} else {
echo "<li class='total-price total-price-$freq'>$text</li>";
}
} // end foreach;
}
/**
* Loop and Displays Pricing Table Lines