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:
@ -5,9 +5,6 @@
|
||||
* @since 2.0.0
|
||||
*/
|
||||
|
||||
$text_yes = '<span class="dashicons dashicons-yes wu-text-green-400"></span>';
|
||||
$text_no = '<span class="dashicons dashicons-no-alt wu-text-red-600"></span>';
|
||||
|
||||
?>
|
||||
<table class='wu-table-auto striped wu-w-full'>
|
||||
|
||||
@ -15,7 +12,7 @@ $text_no = '<span class="dashicons dashicons-no-alt wu-text-red-600"></span>';
|
||||
|
||||
<tr>
|
||||
<td colspan="2" class="wu-px-4 wu-py-2">
|
||||
<?php _e('No items found.', 'wp-multisite-waas'); ?>
|
||||
<?php esc_html_e('No items found.', 'wp-multisite-waas'); ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -25,25 +22,29 @@ $text_no = '<span class="dashicons dashicons-no-alt wu-text-red-600"></span>';
|
||||
|
||||
<tr>
|
||||
|
||||
<td class='wu-px-4 wu-py-2 wu-w-4/12'> <?php echo $value['title']; ?> </td>
|
||||
<td class='wu-px-4 wu-py-2 wu-w-4/12'> <?php echo esc_html($value['title']); ?> </td>
|
||||
|
||||
<td class='wu-px-4 wu-py-2 wu-text-center wu-w-5'>
|
||||
|
||||
<?php echo wu_tooltip($value['tooltip']); ?>
|
||||
<?php echo wu_tooltip($value['tooltip']); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
|
||||
</td>
|
||||
|
||||
<?php if ('Yes' === $value['value'] || 'Enabled' === $value['value']) : ?>
|
||||
|
||||
<td class='wu-px-4 wu-py-2'> <?php echo $text_yes; ?> </td>
|
||||
<td class='wu-px-4 wu-py-2'>
|
||||
<span class="dashicons dashicons-yes wu-text-green-400"></span>
|
||||
</td>
|
||||
|
||||
<?php elseif ('No' === $value['value'] || 'Disabled' === $value['value']) : ?>
|
||||
|
||||
<td class='wu-px-4 wu-py-2'> <?php echo $text_no; ?> </td>
|
||||
<td class='wu-px-4 wu-py-2'>
|
||||
<span class="dashicons dashicons-no-alt wu-text-red-600"></span>
|
||||
</td>
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<td class='wu-px-4 wu-py-2'> <?php echo $value['value']; ?> </td>
|
||||
<td class='wu-px-4 wu-py-2'> <?php echo esc_html($value['value']); ?> </td>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
Reference in New Issue
Block a user