Removed file_get_contents()

This commit is contained in:
LebCit
2018-12-12 08:36:20 +02:00
parent 457c3d9e65
commit 902779c728
+8 -1
View File
@@ -98,7 +98,14 @@ class Full_Screen_Morphing_Search {
<input required type="search" class="morphsearch-input" name="s"
placeholder="<?php echo esc_attr( $fsmsp_placeholder ); ?>"
value="" />
<button class="morphsearch-submit" type="submit"><?php echo file_get_contents( dirname( __FILE__ ) . '/assets/img/magnifier.svg' ); ?></button> <!-- Using "inline" SVG - https://css-tricks.com/using-svg/#article-header-id-7 -->
<button class="morphsearch-submit" type="submit">
<?php
$response = wp_remote_get( 'https://plugins.svn.wordpress.org/full-screen-morphing-search/trunk/assets/img/magnifier.svg' );
if ( is_array( $response ) ) {
echo wp_kses( $response['body'], 'full_screen_morphing_search_add_svg_tags' ); // use the content.
}
?>
</button>
</form>
<div class="morphsearch-content">