Prep Plugin for release on WordPress.org (#23)

* Update translation text domain
* 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.
* Add Proper Build script
* Use emojii flags
* Fix i18n deprecation  notice for translating too early
* Put all scripts in footer and load async
This commit is contained in:
David Stone
2025-04-14 11:36:46 -06:00
committed by GitHub
parent a31cfcb565
commit d88e50df38
1087 changed files with 12586 additions and 18535 deletions

View File

@ -26,19 +26,19 @@ class Payment_Status extends Enum {
*/
const __default = 'pending'; // phpcs:ignore
const PENDING = 'pending';
const PENDING = 'pending';
const COMPLETED = 'completed';
const COMPLETED = 'completed';
const REFUND = 'refunded';
const REFUND = 'refunded';
const PARTIAL_REFUND = 'partially-refunded';
const PARTIAL = 'partially-paid';
const PARTIAL = 'partially-paid';
const FAILED = 'failed';
const FAILED = 'failed';
const CANCELLED = 'cancelled';
const CANCELLED = 'cancelled';
/**
* Returns an array with values => CSS Classes.
@ -87,13 +87,13 @@ class Payment_Status extends Enum {
protected function labels() {
return [
static::PENDING => __('Pending', 'wp-ultimo'),
static::COMPLETED => __('Completed', 'wp-ultimo'),
static::REFUND => __('Refunded', 'wp-ultimo'),
static::PARTIAL_REFUND => __('Partially Refunded', 'wp-ultimo'),
static::PARTIAL => __('Partially Paid', 'wp-ultimo'),
static::FAILED => __('Failed', 'wp-ultimo'),
static::CANCELLED => __('Cancelled', 'wp-ultimo'),
static::PENDING => __('Pending', 'wp-multisite-waas'),
static::COMPLETED => __('Completed', 'wp-multisite-waas'),
static::REFUND => __('Refunded', 'wp-multisite-waas'),
static::PARTIAL_REFUND => __('Partially Refunded', 'wp-multisite-waas'),
static::PARTIAL => __('Partially Paid', 'wp-multisite-waas'),
static::FAILED => __('Failed', 'wp-multisite-waas'),
static::CANCELLED => __('Cancelled', 'wp-multisite-waas'),
];
}
}