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:
@ -65,7 +65,7 @@ function wu_has_product($product_slug, $blocking = false, $site_id = '') {
|
||||
$site = wu_get_site($site_id);
|
||||
|
||||
if (empty($site)) {
|
||||
return new \WP_Error('site-not-found', __('Invalid site ID', 'wp-ultimo'));
|
||||
return new \WP_Error('site-not-found', __('Invalid site ID', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
$membership = $site->get_membership();
|
||||
@ -104,7 +104,7 @@ function wu_is_membership_active($site_id = '') {
|
||||
$site = wu_get_site($site_id);
|
||||
|
||||
if (empty($site)) {
|
||||
return new \WP_Error('site-not-found', __('Invalid site ID', 'wp-ultimo'));
|
||||
return new \WP_Error('site-not-found', __('Invalid site ID', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
$membership = $site->get_membership();
|
||||
|
Reference in New Issue
Block a user