Prep Plugin for release on WordPress.org
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.
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>
|
||||
|
||||
|
Reference in New Issue
Block a user