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:
@ -157,7 +157,7 @@ class WPMUDEV_Host_Provider extends Base_Host_Provider {
|
||||
if (is_wp_error($response)) {
|
||||
|
||||
// translators: The %s placeholder will be replaced with the domain name.
|
||||
wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %s to WPMU Dev hosting.', 'wp-ultimo'), $_domain), LogLevel::ERROR);
|
||||
wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %s to WPMU Dev hosting.', 'wp-multisite-waas'), $_domain), LogLevel::ERROR);
|
||||
}
|
||||
|
||||
$body = json_decode(wp_remote_retrieve_body($response));
|
||||
@ -165,11 +165,11 @@ class WPMUDEV_Host_Provider extends Base_Host_Provider {
|
||||
if ($body->message) {
|
||||
|
||||
// translators: The %1$s will be replaced with the domain name and %2$s is the error message.
|
||||
wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %1$s to WPMU Dev hosting: %2$s', 'wp-ultimo'), $_domain, $body->message->message), LogLevel::ERROR);
|
||||
wu_log_add('integration-wpmudev', sprintf(__('An error occurred while trying to add the custom domain %1$s to WPMU Dev hosting: %2$s', 'wp-multisite-waas'), $_domain, $body->message->message), LogLevel::ERROR);
|
||||
} else {
|
||||
|
||||
// translators: The %s placeholder will be replaced with the domain name.
|
||||
wu_log_add('integration-wpmudev', sprintf(__('Domain %s added to WPMU Dev hosting successfully.', 'wp-ultimo'), $_domain));
|
||||
wu_log_add('integration-wpmudev', sprintf(__('Domain %s added to WPMU Dev hosting successfully.', 'wp-multisite-waas'), $_domain));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -253,7 +253,7 @@ class WPMUDEV_Host_Provider extends Base_Host_Provider {
|
||||
*/
|
||||
public function get_description() {
|
||||
|
||||
return __('WPMU DEV is one of the largest companies in the WordPress space. Founded in 2004, it was one of the first companies to scale the Website as a Service model with products such as Edublogs and CampusPress.', 'wp-ultimo');
|
||||
return __('WPMU DEV is one of the largest companies in the WordPress space. Founded in 2004, it was one of the first companies to scale the Website as a Service model with products such as Edublogs and CampusPress.', 'wp-multisite-waas');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user