Skip to content

Commit dd3ac5f

Browse files
committed
Reviewed unescaped echoing
1 parent 0d0ed13 commit dd3ac5f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

core/Field/Group_Field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public function get_label_template() {
196196
* Print the label template.
197197
*/
198198
public function template_label() {
199-
echo $this->label_template;
199+
echo $this->label_template; // XSS ok.
200200
}
201201

202202
/**

core/Field/Rich_Text_Field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function upload_image_button_html() {
5454
$upload_image_button = '<a href="#" class="button insert-media add_media" data-editor="<%- id %>" title="Add Media">
5555
<span class="wp-media-buttons-icon"></span> Add Media
5656
</a>';
57-
echo apply_filters( 'crb_upload_image_button_html', $upload_image_button, $this->base_name );
57+
echo apply_filters( 'crb_upload_image_button_html', $upload_image_button, $this->base_name ); // XSS ok.
5858
}
5959

6060
/**

core/Field/Scripts_Field.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function print_scripts() {
5252
}
5353

5454
$this->load();
55-
echo $this->get_formatted_value();
55+
echo $this->get_formatted_value(); // XSS ok.
5656
}
5757

5858
/**

core/Widget/Widget.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function widget( $args, $instance ) {
156156
$this->datastore->import_storage( $instance );
157157

158158
if ( $this->print_wrappers ) {
159-
echo $args['before_widget'];
159+
echo $args['before_widget']; // XSS ok.
160160
}
161161

162162
$instance_values = array();
@@ -168,7 +168,7 @@ public function widget( $args, $instance ) {
168168
$this->front_end( $args, $instance_values );
169169

170170
if ( $this->print_wrappers ) {
171-
echo $args['after_widget'];
171+
echo $args['after_widget']; // XSS ok.
172172
}
173173
}
174174

0 commit comments

Comments
 (0)