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 | includes/bricks-builder-widgets/property-deposit.php +6 -4 2.2.3 → 2.4.0 View file →
@@ -71,12 +71,14 @@
71 71
72 72 // Add 'class' attribute to element root tag
73 73 $this->set_attribute( '_root', 'class', $root_classes );
74 74
75 + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Bricks serializes registered attributes through its documented render_attributes() API.
75 76 echo "<div {$this->render_attributes( '_root' )}>";
76 77
77 78 if ( isset( $this->settings['icon'] ) )
78 79 {
80 + // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Bricks Element::render_icon() returns the icon-control HTML fragment, including i/svg markup; Bricks sanitizes uploaded SVGs at its documented upload boundary.
79 81 echo self::render_icon( $this->settings['icon'] );
80 82 echo ' ';
81 83 }
82 84
@@ -81,17 +83,17 @@
81 83 }
82 84
83 85 if ( isset($this->settings['before']) && !empty($this->settings['before']) )
84 86 {
85 - echo $this->settings['before'] . ' ';
87 + echo wp_kses_post( $this->settings['before'] ) . ' ';
86 88 }
87 89
88 - echo $property->get_formatted_deposit();
90 + echo esc_html( $property->get_formatted_deposit() );
89 91
90 92 if ( isset($this->settings['after']) && !empty($this->settings['after']) )
91 93 {
92 - echo ' ' . $this->settings['after'];
94 + echo ' ' . wp_kses_post( $this->settings['after'] );
93 95 }
94 96
95 97 echo '</div>';
96 98 }
97 -}
99 +}