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:
@ -13,7 +13,7 @@
|
||||
|
||||
<div class="wu-flex-shrink wu-mr-4 wu-items-center wu-justify-between wu-flex">
|
||||
|
||||
<?php echo $args['image']; ?>
|
||||
<?php echo wp_kses_post($args['image']); ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -25,11 +25,11 @@
|
||||
|
||||
<span class="wu-font-semibold wu-truncate wu-text-gray-700">
|
||||
|
||||
<?php echo $args['title']; ?>
|
||||
<?php echo wp_kses_post($args['title']); ?>
|
||||
|
||||
<?php if ($args['id']) : ?>
|
||||
|
||||
<span class="wu-font-normal wu-text-xs">(#<?php echo $args['id']; ?>)</span>
|
||||
<span class="wu-font-normal wu-text-xs">(#<?php echo esc_html($args['id']); ?>)</span>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
|
||||
<div class="wu-ml-2 wu-flex-shrink-0 wu-flex">
|
||||
|
||||
<?php echo $args['status']; ?>
|
||||
<?php echo wp_kses_post($args['status']); ?>
|
||||
|
||||
</div>
|
||||
|
||||
@ -55,21 +55,21 @@
|
||||
|
||||
<?php if (wu_get_isset($item, 'url')) : ?>
|
||||
|
||||
<a title="<?php echo wu_get_isset($item, 'value', ''); ?>" href="<?php echo esc_attr($item['url']); ?>" class="wu-no-underline wu-flex wu-items-center wu-text-xs wp-ui-text-highlight <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo $w_classes; ?>" <?php echo wu_tooltip_text($item['label']); ?>>
|
||||
<a title="<?php echo wu_get_isset($item, 'value', ''); ?>" href="<?php echo esc_attr($item['url']); ?>" class="wu-no-underline wu-flex wu-items-center wu-text-xs wp-ui-text-highlight <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo esc_attr($w_classes); ?>" <?php echo wu_tooltip_text($item['label']); ?>>
|
||||
|
||||
<span class="<?php echo esc_attr($item['icon']); ?>"></span>
|
||||
|
||||
<?php echo $item['value']; ?>
|
||||
<?php echo esc_html($item['value']); ?>
|
||||
|
||||
</a>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<span class="wu-flex wu-items-center wu-text-xs wu-text-gray-600 <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo $w_classes; ?>" <?php echo wu_get_isset($item, 'label') ? wu_tooltip_text($item['label']) : ''; ?>>
|
||||
<span class="wu-flex wu-items-center wu-text-xs wu-text-gray-600 <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo esc_attr($w_classes); ?>" <?php echo wu_get_isset($item, 'label') ? wu_tooltip_text($item['label']) : ''; ?>>
|
||||
|
||||
<span class="<?php echo esc_attr($item['icon']); ?>"></span>
|
||||
|
||||
<?php echo $item['value']; ?>
|
||||
<?php echo esc_html($item['value']); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -92,21 +92,21 @@ endforeach;
|
||||
|
||||
<?php if (wu_get_isset($item, 'url')) : ?>
|
||||
|
||||
<a title="<?php echo wu_get_isset($item, 'value', ''); ?>" href="<?php echo esc_attr($item['url']); ?>" class="wu-no-underline wu-flex wu-items-center wu-text-xs wp-ui-text-highlight <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo $w_classes; ?>" <?php echo wu_tooltip_text($item['label']); ?>>
|
||||
<a title="<?php echo wu_get_isset($item, 'value', ''); ?>" href="<?php echo esc_attr($item['url']); ?>" class="wu-no-underline wu-flex wu-items-center wu-text-xs wp-ui-text-highlight <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo esc_attr($w_classes); ?>" <?php echo wu_tooltip_text($item['label']); ?>>
|
||||
|
||||
<span class="<?php echo esc_attr($item['icon']); ?>"></span>
|
||||
|
||||
<?php echo $item['value']; ?>
|
||||
<?php echo esc_html($item['value']); ?>
|
||||
|
||||
</a>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<span class="wu-flex wu-items-center wu-text-xs wu-text-gray-600 <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo $w_classes; ?> " <?php echo wu_get_isset($item, 'label') ? wu_tooltip_text($item['label']) : ''; ?>>
|
||||
<span class="wu-flex wu-items-center wu-text-xs wu-text-gray-600 <?php echo ! $first ? 'sm:wu-mt-0 sm:wu-ml-6' : ''; ?> <?php echo esc_attr($w_classes); ?> " <?php echo wu_get_isset($item, 'label') ? wu_tooltip_text($item['label']) : ''; ?>>
|
||||
|
||||
<span class="<?php echo esc_attr($item['icon']); ?>"></span>
|
||||
|
||||
<?php echo $item['value']; ?>
|
||||
<?php echo esc_html($item['value']); ?>
|
||||
|
||||
</span>
|
||||
|
||||
@ -127,7 +127,7 @@ endforeach;
|
||||
|
||||
<div class="wu-flex wu-ml-5 wu-flex-shrink-0 wu-items-center wu-justify-between">
|
||||
|
||||
<a href="<?php echo esc_attr($args['url']); ?>" title="<?php esc_attr_e('View', 'wp-ultimo'); ?>">
|
||||
<a href="<?php echo esc_attr($args['url']); ?>" title="<?php esc_attr_e('View', 'wp-multisite-waas'); ?>">
|
||||
<svg class="wu-h-5 wu-w-5 wu-text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd" d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
Reference in New Issue
Block a user