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:
@ -11,7 +11,7 @@
|
||||
|
||||
<li class="wu-p-4 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
|
||||
|
||||
<h3 class="wu-mt-0 wu-mb-2 wu-text-2xs wu-uppercase"><?php _e('Initiator', 'wp-ultimo'); ?></h3>
|
||||
<h3 class="wu-mt-0 wu-mb-2 wu-text-2xs wu-uppercase"><?php esc_html_e('Initiator', 'wp-multisite-waas'); ?></h3>
|
||||
|
||||
<?php if ($object->get_initiator() == 'manual') : ?>
|
||||
|
||||
@ -46,9 +46,9 @@
|
||||
|
||||
<div class='wu-pl-2'>
|
||||
|
||||
<strong class='wu-block'> <?php echo $object->get_author_display_name(); ?> <small class='wu-font-normal'>(#<?php echo $object->get_author_id(); ?>)</small></strong>
|
||||
<strong class='wu-block'> <?php echo esc_html($object->get_author_display_name()); ?> <small class='wu-font-normal'>(#<?php echo esc_html($object->get_author_id()); ?>)</small></strong>
|
||||
|
||||
<small><?php echo $object->get_author_email_address(); ?></small>
|
||||
<small><?php echo esc_html($object->get_author_email_address()); ?></small>
|
||||
|
||||
</div>
|
||||
|
||||
@ -72,9 +72,9 @@
|
||||
|
||||
<div class=''>
|
||||
|
||||
<strong class='wu-block'><?php echo ucfirst($object->get_initiator()); ?></strong>
|
||||
<strong class='wu-block'><?php echo esc_html(ucfirst($object->get_initiator())); ?></strong>
|
||||
|
||||
<small><?php _e('Automatically started', 'wp-ultimo'); ?></small>
|
||||
<small><?php esc_html_e('Automatically started', 'wp-multisite-waas'); ?></small>
|
||||
|
||||
</div>
|
||||
|
||||
@ -88,7 +88,7 @@
|
||||
|
||||
<li class="wu-p-4 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid">
|
||||
|
||||
<h3 class="wu-mt-1 wu-mb-2 wu-text-2xs wu-uppercase"><?php printf(__('Target %s', 'wp-ultimo'), wu_slug_to_name($object->get_object_type())); ?></h3>
|
||||
<h3 class="wu-mt-1 wu-mb-2 wu-text-2xs wu-uppercase"><?php printf(esc_html__('Target %s', 'wp-multisite-waas'), esc_html(wu_slug_to_name($object->get_object_type()))); ?></h3>
|
||||
|
||||
<?php
|
||||
|
||||
@ -104,7 +104,7 @@
|
||||
case 'payment':
|
||||
echo $base_list_table->column_payment($object);
|
||||
break;
|
||||
} // end switch;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -9,10 +9,10 @@
|
||||
|
||||
<li class="wu-p-4 wu-m-0 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-400 wu-border-solid">
|
||||
|
||||
<h3 class="wu-my-1 wu-text-2xs wu-uppercase"><?php echo __('Message', 'wp-ultimo'); ?></h3>
|
||||
<h3 class="wu-my-1 wu-text-2xs wu-uppercase"><?php echo esc_html__('Message', 'wp-multisite-waas'); ?></h3>
|
||||
|
||||
<span class="wu-my-1 wu-inline-block">
|
||||
<?php echo $object->get_message(); ?>
|
||||
<?php echo $object->get_message(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</span>
|
||||
|
||||
</li>
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
<span class="wu-blinking-animation wu-text-gray-600 wu-my-1 wu-mb-0 wu-text-2xs wu-uppercase wu-font-semibold" >
|
||||
|
||||
<?php echo $loading_text; ?>
|
||||
<?php echo esc_html($loading_text); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -27,11 +27,11 @@
|
||||
|
||||
<div class="wu-bg-gray-100 wu-px-4 wu-py-4 wu--m-3 wu-mt-3 wu-border-t wu-border-l-0 wu-border-r-0 wu-border-b-0 wu-border-gray-300 wu-border-solid">
|
||||
|
||||
<textarea cols="100" rows="40" aria-hidden="true" class="screen-reader-text" id="hidden_textarea"><?php echo $payload; ?></textarea>
|
||||
<textarea cols="100" rows="40" aria-hidden="true" class="screen-reader-text" id="hidden_textarea"><?php echo esc_html($payload); ?></textarea>
|
||||
|
||||
<span>
|
||||
<button type="button" data-clipboard-action="copy" data-clipboard-target="#hidden_textarea" class="btn-clipboard button">
|
||||
<?php _e('Copy to the Clipboard', 'wp-ultimo'); ?>
|
||||
<?php esc_html_e('Copy to the Clipboard', 'wp-multisite-waas'); ?>
|
||||
</button>
|
||||
</span>
|
||||
|
||||
|
Reference in New Issue
Block a user