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,15 +26,15 @@ class Domain_Stage extends Enum {
*/
const __default = 'checking-dns'; // phpcs:ignore
const FAILED = 'failed';
const FAILED = 'failed';
const CHECKING_DNS = 'checking-dns';
const CHECKING_DNS = 'checking-dns';
const CHECKING_SSL = 'checking-ssl-cert';
const CHECKING_SSL = 'checking-ssl-cert';
const DONE_WITHOUT_SSL = 'done-without-ssl';
const DONE = 'done';
const DONE = 'done';
/**
* Returns an array with values => CSS Classes.
@ -62,11 +62,11 @@ class Domain_Stage extends Enum {
protected function labels() {
return [
static::FAILED => __('DNS Failed', 'wp-ultimo'),
static::CHECKING_DNS => __('Checking DNS', 'wp-ultimo'),
static::CHECKING_SSL => __('Checking SSL', 'wp-ultimo'),
static::DONE => __('Ready', 'wp-ultimo'),
static::DONE_WITHOUT_SSL => __('Ready (without SSL)', 'wp-ultimo'),
static::FAILED => __('DNS Failed', 'wp-multisite-waas'),
static::CHECKING_DNS => __('Checking DNS', 'wp-multisite-waas'),
static::CHECKING_SSL => __('Checking SSL', 'wp-multisite-waas'),
static::DONE => __('Ready', 'wp-multisite-waas'),
static::DONE_WITHOUT_SSL => __('Ready (without SSL)', 'wp-multisite-waas'),
];
}
}