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

@ -69,7 +69,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field {
*/
public function get_title() {
return __('Terms of Use', 'wp-ultimo');
return __('Terms of Use', 'wp-multisite-waas');
}
/**
@ -82,7 +82,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field {
*/
public function get_description() {
return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'wp-ultimo');
return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'wp-multisite-waas');
}
/**
@ -95,7 +95,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field {
*/
public function get_tooltip() {
return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'wp-ultimo');
return __('Adds a terms and conditions checkbox that must be marked before the account/site can be created.', 'wp-multisite-waas');
}
/**
@ -123,7 +123,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field {
public function defaults() {
return [
'tou_name' => __('I agree with the terms of use.', 'wp-ultimo'),
'tou_name' => __('I agree with the terms of use.', 'wp-multisite-waas'),
];
}
@ -148,7 +148,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field {
return [
'id' => 'terms_of_use',
'name' => __('Terms of Use', 'wp-ultimo'),
'name' => __('Terms of Use', 'wp-multisite-waas'),
];
}
@ -164,15 +164,15 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field {
'tou_name' => [
'order' => 10,
'type' => 'text',
'title' => __('Terms Checkbox Label', 'wp-ultimo'),
'placeholder' => __('e.g. I agree with the terms of use.', 'wp-ultimo'),
'title' => __('Terms Checkbox Label', 'wp-multisite-waas'),
'placeholder' => __('e.g. I agree with the terms of use.', 'wp-multisite-waas'),
],
'tou_url' => [
'order' => 20,
'type' => 'url',
'title' => __('Link to the Terms Page', 'wp-ultimo'),
'desc' => __('Enter the link to the terms of use content.', 'wp-ultimo'),
'placeholder' => __('e.g. https://yoursite.com/terms', 'wp-ultimo'),
'title' => __('Link to the Terms Page', 'wp-multisite-waas'),
'desc' => __('Enter the link to the terms of use content.', 'wp-multisite-waas'),
'placeholder' => __('e.g. https://yoursite.com/terms', 'wp-multisite-waas'),
],
];
}
@ -189,7 +189,7 @@ class Signup_Field_Terms_Of_Use extends Base_Signup_Field {
$checkout_fields = [];
$tou_link = sprintf('<a href="%s" target="_blank">%s</a>', $attributes['tou_url'], __('Read here', 'wp-ultimo'));
$tou_link = sprintf('<a href="%s" target="_blank">%s</a>', $attributes['tou_url'], __('Read here', 'wp-multisite-waas'));
$checkout_fields['terms_of_use'] = [
'type' => 'checkbox',