Changeset 1879884
- Timestamp:
- 05/23/2018 09:27:04 AM (8 years ago)
- File:
-
- 1 edited
-
dsgvo/trunk/eu-dsgvo-helper.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dsgvo/trunk/eu-dsgvo-helper.php
r1879880 r1879884 4 4 Plugin Name: EU DSGVO Helper 5 5 Description: This Plugin will be further developed. It so far caches google webfonts locally and replaces youtube embeded videos with a preview-image which becomes an embeded video on-click. More functions will be added soon. 6 Version: 1.0.1. 16 Version: 1.0.1.2 7 7 Author: Eric Marten 8 8 Author URL: https://www.herr-marten.de/ … … 68 68 if (!file_exists( $font_file )) 69 69 { 70 file_put_contents($font_file,file_get_contents($match["url"])); 70 file_put_contents($font_file, 71 wp_remote_retrieve_body( wp_remote_get( $match["url"], array('timeout' => 60, 'user-agent' => $_SERVER["HTTP_USER_AGENT"] ) ) ) ); 71 72 $css=str_replace($match["url"],$font_url,$css); 72 73 }
Note: See TracChangeset
for help on using the changeset viewer.