File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ private function render_add_image() {
63
63
?>
64
64
<form id="editor_box_add_image" method="post" enctype="multipart/form-data">
65
65
<?php wp_nonce_field ( 'editor_box_img_nonce ' ); ?>
66
- <input type="file" id="ebox_image_select" name="<?php echo IMGINPUT ; ?> " id="<?php echo IMGINPUT ; ?> ">
66
+ <input type="file" id="ebox_image_select" name="<?php echo esc_attr ( IMGINPUT ) ; ?> " id="<?php echo esc_attr ( IMGINPUT ) ; ?> ">
67
67
68
68
</form>
69
69
<?php
@@ -78,7 +78,7 @@ function render_categories() {
78
78
<label for="editor_box_categories"><?php _e ( 'Category ' , 'editor_box ' ); ?> </label>
79
79
<select name="editor_box_categories" class="one_third">
80
80
<?php foreach ( $ categories as $ category ) : ?>
81
- <option value="<?php echo $ category ->term_id ; ?> ">
81
+ <option value="<?php echo esc_attr ( $ category ->term_id ) ; ?> ">
82
82
<?php echo esc_html ($ category ->name ); ?>
83
83
</option>
84
84
<?php endforeach ; ?>
You can’t perform that action at this time.
0 commit comments