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:
@ -127,7 +127,7 @@ class Broadcast_Manager extends Base_Manager {
|
||||
$target_products = wu_request('target_products', '');
|
||||
|
||||
if ( ! $target_customers && ! $target_products) {
|
||||
wp_send_json_error(new \WP_Error('error', __('No product or customer target was selected.', 'wp-ultimo')));
|
||||
wp_send_json_error(new \WP_Error('error', __('No product or customer target was selected.', 'wp-multisite-waas')));
|
||||
}
|
||||
|
||||
$broadcast_type = wu_request('type', 'broadcast_notice');
|
||||
@ -248,7 +248,7 @@ class Broadcast_Manager extends Base_Manager {
|
||||
}
|
||||
}
|
||||
|
||||
$error = new \WP_Error('mail-error', __('Something wrong happened.', 'wp-ultimo'));
|
||||
$error = new \WP_Error('mail-error', __('Something wrong happened.', 'wp-multisite-waas'));
|
||||
|
||||
wp_send_json_error($error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user