PluginProbe
Property Hive / 2.4.0
Property Hive v2.4.0
2.4.0 2.3.1 2.3.0 2.2.6 2.2.5 2.2.4 2.2.3 2.2.2 1.4.46 1.4.47 1.4.48 1.4.49 1.4.5 1.4.50 1.4.51 1.4.52 1.4.53 1.4.54 1.4.55 1.4.56 1.4.57 1.4.58 1.4.59 1.4.6 1.4.60 All 262 releases
← All changes | templates/single-property/meta.php +2 -1 1.4.49 → 2.4.0 View file →
@@ -19,11 +19,12 @@
19 19
20 20 <?php do_action( 'propertyhive_property_meta_list_start' ); ?>
21 21
22 22 <?php
23 + // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template-local variable; the template is included through a helper/function scope, so PrefixAllGlobals misclassifies the file when checked standalone.
23 24 foreach ( $meta as $key => $value )
24 25 {
25 - echo '<li class="' . $key . '"><span>' . $value['label'] . ':</span> ' . $value['value'] . '</li>';
26 + echo '<li class="' . esc_attr( $key ) . '"><span>' . esc_html($value['label']) . ':</span> ' . esc_html($value['value']) . '</li>';
26 27 }
27 28 ?>
28 29
29 30 <?php do_action( 'propertyhive_property_meta_list_end' ); ?>