Skip to content

Commit c46f9a8

Browse files
committed
~ Removed wp_kses().
1 parent c77072f commit c46f9a8

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

gp-file-upload-pro/gpfup-display-images-in-entry-details.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
$html .= '<a href="' . esc_url( $file_url ) . '"><img src="' . $file_url . '" style="max-width: 100%" /></a>';
3535
}
3636

37-
/**
38-
* Strip all HTML except for img, a, ul, li, and br tags.
39-
*/
4037
return '<style>
4138
.gpfup-preview-container { display: flex; flex-wrap: wrap; }
4239
.gpfup-preview-container a {
@@ -53,14 +50,5 @@
5350
aspect-ratio: 1/1;
5451
}
5552
</style>
56-
<div class="gpfup-preview-container">' . wp_kses( $html, array(
57-
'img' => array(
58-
'src' => array(),
59-
'style' => array(),
60-
),
61-
'a' => array( 'href' => array() ),
62-
'br' => array(),
63-
'ul' => array(),
64-
'li' => array(),
65-
) ) . '</div>';
53+
<div class="gpfup-preview-container">' . $html . '</div>';
6654
}, 10, 4 );

0 commit comments

Comments
 (0)