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:
@ -27,12 +27,12 @@
|
||||
<div class="wu-ml-auto">
|
||||
|
||||
<a
|
||||
title="<?php esc_attr_e('Update your membership', 'wp-ultimo'); ?>"
|
||||
title="<?php esc_attr_e('Update your membership', 'wp-multisite-waas'); ?>"
|
||||
class="wu-text-sm wu-no-underline button"
|
||||
href="<?php echo esc_attr(wu_get_membership_update_url($membership)); ?>"
|
||||
>
|
||||
|
||||
<?php esc_html_e('Change', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Change', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
@ -93,7 +93,7 @@
|
||||
|
||||
<div class="wu-bg-yellow-200 wu-text-yellow-700 wu-rounded wu-p-2">
|
||||
|
||||
<?php printf(__("There's a pending change for this membership, scheduled to take place on <strong>%1\$s</strong>. Changing to <strong>%2\$s</strong>.", 'wp-ultimo'), $pending_change_date, $pending_change); ?>
|
||||
<?php printf(__("There's a pending change for this membership, scheduled to take place on <strong>%1\$s</strong>. Changing to <strong>%2\$s</strong>.", 'wp-multisite-waas'), $pending_change_date, $pending_change); ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -116,7 +116,7 @@
|
||||
<div class="sm:wu-col-span-1">
|
||||
|
||||
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
|
||||
<?php _e('Status', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Status', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 wu-mb-4">
|
||||
@ -134,7 +134,7 @@
|
||||
<div class="sm:wu-col-span-1">
|
||||
|
||||
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
|
||||
<?php _e('Initial Amount', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Initial Amount', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 wu-mb-4">
|
||||
@ -148,7 +148,7 @@
|
||||
<div class="sm:wu-col-span-1">
|
||||
|
||||
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
|
||||
<?php _e('Times Billed', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Times Billed', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 wu-mb-4">
|
||||
@ -164,7 +164,7 @@
|
||||
<div class="sm:wu-col-span-1">
|
||||
|
||||
<div class="wu-text-sm wu-font-medium wu-text-gray-600">
|
||||
<?php _e('Expires', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Expires', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<div class="wu-mt-1 wu-text-sm wu-text-gray-900 wu-mb-4">
|
||||
@ -226,7 +226,7 @@
|
||||
|
||||
<h3 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php echo __('Additional Packages & Services', 'wp-ultimo'); ?>
|
||||
<?php echo __('Additional Packages & Services', 'wp-multisite-waas'); ?>
|
||||
|
||||
</h3>
|
||||
|
||||
@ -268,7 +268,7 @@
|
||||
<div class="wu-ml-4 wu-flex-shrink-0 wu-flex">
|
||||
|
||||
<a
|
||||
title="<?php esc_attr_e('Product Details', 'wp-ultimo'); ?>"
|
||||
title="<?php esc_attr_e('Product Details', 'wp-multisite-waas'); ?>"
|
||||
href="
|
||||
<?php
|
||||
echo esc_attr(
|
||||
@ -285,14 +285,14 @@
|
||||
class="wubox wu-ml-4 wu-no-underline"
|
||||
>
|
||||
|
||||
<?php esc_html_e('Details', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Details', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
<?php if ($addon['product']->is_recurring() && (! $pending_products || wu_get_isset($pending_products, $addon['product']->get_id()))) : ?>
|
||||
|
||||
<a <?php // Translators: %s is the name of the product being canceled. ?>
|
||||
title="<?php esc_attr(sprintf(__('Cancel %s', 'wp-ultimo'), $addon['product']->get_name())); ?>"
|
||||
title="<?php esc_attr(sprintf(__('Cancel %s', 'wp-multisite-waas'), $addon['product']->get_name())); ?>"
|
||||
href="
|
||||
<?php
|
||||
echo esc_attr(
|
||||
@ -310,7 +310,7 @@
|
||||
class="wubox wu-ml-4 wu-no-underline delete wu-text-red-500 hover:wu-text-red-600"
|
||||
>
|
||||
|
||||
<?php esc_html_e('Cancel', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Cancel', 'wp-multisite-waas'); ?>
|
||||
|
||||
</a>
|
||||
|
||||
@ -329,7 +329,7 @@
|
||||
<?php else : ?>
|
||||
|
||||
<div class="wu-px-4 wu-py-6 wu-text-center wu-text-gray-600">
|
||||
<?php esc_html_e('No packages or services found.', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('No packages or services found.', 'wp-multisite-waas'); ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
@ -344,7 +344,7 @@
|
||||
<div class="wu-text-lg">
|
||||
|
||||
<small class="wu-block wu-text-xs wu-uppercase wu-font-bold wu-text-gray-600">
|
||||
<?php esc_html_e('Total', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Total', 'wp-multisite-waas'); ?>
|
||||
</small>
|
||||
|
||||
<!-- <span class="wu-text-gray-500 wu-line-through">$29</span> -->
|
||||
|
Reference in New Issue
Block a user