Skip to content

Commit c91ff58

Browse files
committed
esc echo
1 parent b8ca9f7 commit c91ff58

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

solid-data-summary.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ function the_post_types_table() {
6161
<tbody>
6262
<?php foreach($post_types as $post_type): ?>
6363
<tr>
64-
<td><?php echo $post_type['name']; ?></td>
65-
<td><?php echo $post_type['label']; ?></td>
66-
<td><?php echo $post_type['publish']; ?></td>
67-
<td><?php echo $post_type['draft']; ?></td>
64+
<td><?php echo esc_html($post_type['name']); ?></td>
65+
<td><?php echo esc_html($post_type['label']); ?></td>
66+
<td><?php echo esc_html($post_type['publish']); ?></td>
67+
<td><?php echo esc_html($post_type['draft']); ?></td>
6868
</tr>
6969
<?php endforeach; ?>
7070
</tbody>
@@ -106,14 +106,14 @@ function the_taxonomies_table() {
106106
<tbody>
107107
<?php foreach($taxonomies as $taxonomy): ?>
108108
<tr>
109-
<td><?php echo $taxonomy['name']; ?></td>
110-
<td><?php echo $taxonomy['label']; ?></td>
111-
<td><?php echo join(', ', $taxonomy['object_type']); ?></td>
112-
<td><?php echo $taxonomy['count']; ?></td>
109+
<td><?php echo esc_html($taxonomy['name']); ?></td>
110+
<td><?php echo esc_html($taxonomy['label']); ?></td>
111+
<td><?php echo esc_html(join(', ', $taxonomy['object_type'])); ?></td>
112+
<td><?php echo esc_html($taxonomy['count']); ?></td>
113113
</tr>
114114
<?php endforeach; ?>
115115
</tbody>
116116

117117
</table>
118118
<?php
119-
}
119+
}

0 commit comments

Comments
 (0)