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

@ -20,32 +20,32 @@ defined('ABSPATH') || exit;
*/
return [
'domain' => [
'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-ultimo'),
'description' => __("Your Domain name. You don't need to put http or https in front of your domain in this field. e.g: example.com.", 'wp-multisite-waas'),
'type' => 'string',
'required' => true,
],
'blog_id' => [
'description' => __('The blog ID attached to this domain.', 'wp-ultimo'),
'description' => __('The blog ID attached to this domain.', 'wp-multisite-waas'),
'type' => 'integer',
'required' => true,
],
'active' => [
'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-ultimo'),
'description' => __('Set this domain as active (true), which means available to be used, or inactive (false).', 'wp-multisite-waas'),
'type' => 'boolean',
'required' => false,
],
'primary_domain' => [
'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-ultimo'),
'description' => __("Define true to set this as primary domain of a site, meaning it's the main url, or set false.", 'wp-multisite-waas'),
'type' => 'boolean',
'required' => false,
],
'secure' => [
'description' => __('If this domain has some SSL security or not.', 'wp-ultimo'),
'description' => __('If this domain has some SSL security or not.', 'wp-multisite-waas'),
'type' => 'boolean',
'required' => false,
],
'stage' => [
'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'wp-ultimo'),
'description' => __('The state of the domain model object. Can be one of this options: checking-dns, checking-ssl-cert, done-without-ssl, done and failed.', 'wp-multisite-waas'),
'type' => 'string',
'required' => true,
'enum' => [
@ -57,22 +57,22 @@ return [
],
],
'date_created' => [
'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-ultimo'),
'description' => __('Date when the domain was created. If no date is set, the current date and time will be used.', 'wp-multisite-waas'),
'type' => 'string',
'required' => false,
],
'date_modified' => [
'description' => __('Model last modification date.', 'wp-ultimo'),
'description' => __('Model last modification date.', 'wp-multisite-waas'),
'type' => 'string',
'required' => false,
],
'migrated_from_id' => [
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-ultimo'),
'description' => __('The ID of the original 1.X model that was used to generate this item on migration.', 'wp-multisite-waas'),
'type' => 'integer',
'required' => false,
],
'skip_validation' => [
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-ultimo'),
'description' => __('Set true to have field information validation bypassed when saving this event.', 'wp-multisite-waas'),
'type' => 'boolean',
'required' => false,
],