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:
@ -16,7 +16,7 @@
|
||||
<?php
|
||||
|
||||
// translators: 1$s is the display name of the user currently logged in.
|
||||
printf(__('Not %1$s? <a href="%2$s" class="wu-no-underline">Log in</a> using your account.', 'wp-ultimo'), wp_get_current_user()->display_name, $login_url);
|
||||
printf(wp_kses_post(__('Not %1$s? <a href="%2$s" class="wu-no-underline">Log in</a> using your account.', 'wp-multisite-waas')), esc_html(wp_get_current_user()->display_name), esc_url($login_url));
|
||||
|
||||
?>
|
||||
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
<h2 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo $title; ?>
|
||||
<?php echo esc_html($title); ?>
|
||||
|
||||
</h2>
|
||||
|
||||
@ -44,12 +44,12 @@
|
||||
<div class="wu-ml-auto">
|
||||
|
||||
<a
|
||||
title="<?php esc_attr_e('Update Billing Address', 'wp-ultimo'); ?>"
|
||||
title="<?php esc_attr_e('Update Billing Address', 'wp-multisite-waas'); ?>"
|
||||
class="wu-text-sm wu-no-underline button"
|
||||
href="<?php echo wu_get_registration_url(); ?>"
|
||||
>
|
||||
|
||||
<?php _e('Create an Account', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Create an Account', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
|
Reference in New Issue
Block a user