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 @@
|
||||
|
||||
<ul class="wu-inline-block wu-m-0 wu-p-0 wu-align-middle wu-mx-1">
|
||||
<li class="wu-inline-block wu-m-0 wu-p-0">
|
||||
<span id="wu-toolbox-toggle" class="dashicons-before dashicons-wu-wp-ultimo" <?php echo wu_tooltip_text(__('Toggle Toolbox', 'wp-ultimo')); ?>></span>
|
||||
<span id="wu-toolbox-toggle" class="dashicons-before dashicons-wu-wp-ultimo" <?php echo wu_tooltip_text(__('Toggle Toolbox', 'wp-multisite-waas')); ?>></span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
|
||||
<a href="<?php echo esc_attr(wu_network_admin_url('wp-ultimo-edit-site', ['id' => $current_site->get_id()])); ?>"
|
||||
class="wu-inline-block wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
<span title="<?php esc_attr_e('Current Site', 'wp-ultimo'); ?>"
|
||||
<span title="<?php esc_attr_e('Current Site', 'wp-multisite-waas'); ?>"
|
||||
class="dashicons-wu-browser wu-text-sm wu-w-auto wu-h-auto wu-align-text-bottom wu-relative"></span>
|
||||
<span class="">
|
||||
<?php echo $current_site->get_title(); ?>
|
||||
@ -41,7 +41,7 @@
|
||||
|
||||
<a href="<?php echo esc_attr(wu_network_admin_url('wp-ultimo-edit-customer', ['id' => $customer->get_id()])); ?>"
|
||||
class="wu-inline-block wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
<span title="<?php esc_attr_e('Current Site', 'wp-ultimo'); ?>"
|
||||
<span title="<?php esc_attr_e('Current Site', 'wp-multisite-waas'); ?>"
|
||||
class="dashicons-wu-user wu-text-sm wu-w-auto wu-h-auto wu-align-text-bottom wu-relative"></span>
|
||||
<span class="">
|
||||
<?php echo $customer->get_display_name(); ?>
|
||||
@ -58,10 +58,10 @@
|
||||
|
||||
<a href="<?php echo esc_attr(wu_network_admin_url('wp-ultimo-edit-membership', ['id' => $membership->get_id()])); ?>"
|
||||
class="wu-inline-block wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
<span title="<?php esc_attr_e('Current Site', 'wp-ultimo'); ?>"
|
||||
<span title="<?php esc_attr_e('Current Site', 'wp-multisite-waas'); ?>"
|
||||
class="dashicons-wu-circular-graph wu-text-sm wu-w-auto wu-h-auto wu-align-text-bottom wu-relative"></span>
|
||||
<span class="">
|
||||
<?php printf(__('Membership <Strong>%s</strong>', 'wp-ultimo'), $membership->get_hash()); ?>
|
||||
<?php printf(__('Membership <Strong>%s</strong>', 'wp-multisite-waas'), $membership->get_hash()); ?>
|
||||
</span>
|
||||
<span id="wu-toolbox-membership-status" class="wu-inline-block wu-w-3 wu-h-3 wu-rounded-full wu-align-text-top <?php echo esc_attr($membership->get_status_class()); ?>" <?php echo wu_tooltip_text($membership->get_status_label()); ?>>
|
||||
|
||||
@ -79,10 +79,10 @@
|
||||
|
||||
<a id="wu-jumper-button-trigger" href="#"
|
||||
class="wu-inline-block wu-uppercase wu-text-gray-600 wu-no-underline">
|
||||
<span title="<?php esc_attr_e('Jumper', 'wp-ultimo'); ?>"
|
||||
<span title="<?php esc_attr_e('Jumper', 'wp-multisite-waas'); ?>"
|
||||
class="dashicons dashicons-wu-flash wu-text-sm wu-w-auto wu-h-auto wu-align-text-top wu-relative wu--mr-1"></span>
|
||||
<span class="wu-font-bold">
|
||||
<?php esc_attr_e('Jumper', 'wp-ultimo'); ?>
|
||||
<?php esc_attr_e('Jumper', 'wp-multisite-waas'); ?>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
@ -102,7 +102,7 @@ if (typeof jQuery !== 'undefined') {
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
} // end if;
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
Reference in New Issue
Block a user