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:
@ -56,14 +56,14 @@ class Site_Template extends Rule {
|
||||
$site = wu_get_site($template_id);
|
||||
|
||||
if (! $site || ($site->get_type() !== Site_Type::SITE_TEMPLATE && $site->get_type() !== Site_Type::CUSTOMER_OWNED)) {
|
||||
$this->message = __('The Template ID does not correspond to a valid Template', 'wp-ultimo');
|
||||
$this->message = __('The Template ID does not correspond to a valid Template', 'wp-multisite-waas');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($site->get_type() === Site_Type::CUSTOMER_OWNED) {
|
||||
if (! wu_get_setting('allow_own_site_as_template')) {
|
||||
$this->message = __('You can not use your sites as template', 'wp-ultimo');
|
||||
$this->message = __('You can not use your sites as template', 'wp-multisite-waas');
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -71,7 +71,7 @@ class Site_Template extends Rule {
|
||||
$customer = wu_get_current_customer();
|
||||
|
||||
if (! $customer || $site->get_customer_id() !== $customer->get_id()) {
|
||||
$this->message = __('The selected template is not available.', 'wp-ultimo');
|
||||
$this->message = __('The selected template is not available.', 'wp-multisite-waas');
|
||||
|
||||
return false;
|
||||
}
|
||||
@ -103,7 +103,7 @@ class Site_Template extends Rule {
|
||||
|
||||
if (is_array($allowed_templates) && !in_array($template_id, $allowed_templates)) { // phpcs:ignore
|
||||
|
||||
$this->message = __('The selected template is not available for this product.', 'wp-ultimo');
|
||||
$this->message = __('The selected template is not available for this product.', 'wp-multisite-waas');
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user