Changeset 2735665
- Timestamp:
- 06/01/2022 01:07:23 PM (4 years ago)
- Location:
- wrap-google-fonts/trunk
- Files:
-
- 2 edited
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wrap-google-fonts/trunk/index.php
r2734556 r2735665 5 5 * Plugin URI: https://wordpress.org/plugins/wrap-google-fonts/ 6 6 * Description: Downloads Google Fonts to your server 7 * Version: 0.4. 17 * Version: 0.4.2 8 8 * Author: SquareFlower Websolutions (Lukas Rydygel) <hallo@squareflower.de> 9 9 * Author URI: http://squareflower.de … … 26 26 register_activation_hook(__FILE__, array('GoogleFontsWrapper', 'install')); 27 27 28 add_filter('style_loader_tag', array('GoogleFontsWrapper', 'rewriteStyleTags'), 9999, 4);28 add_filter('style_loader_tag', array('GoogleFontsWrapper', 'rewriteStyleTags'), 0, 4); 29 29 30 add_filter('wp_resource_hints', array('GoogleFontsWrapper', 'removeDnsPrefetch'), 9999, 2);30 add_filter('wp_resource_hints', array('GoogleFontsWrapper', 'removeDnsPrefetch'), 0, 2); 31 31 32 32 add_action('admin_bar_menu', array('GoogleFontsWrapper', 'addAdminBar'), 999); -
wrap-google-fonts/trunk/readme.txt
r2734556 r2735665 23 23 == Usage == 24 24 25 Simply include the fonts from Google by using 'wp_enqueue_scripts'.25 Simply include the fonts from Google by using `wp_enqueue_scripts`. 26 26 27 27 The plugin will parse the URL from the enqueued stylesheets and detect front from Google. … … 35 35 When using multiple fonts in one style-tag, please make sure to use no load the script without a version, to avoid WordPress from normalizing the URL. 36 36 37 ` ``wp_enqueue_style('...', '...', [], null);```37 `wp_enqueue_style('...', '...', [], null);` 38 38 39 As Google will accept the parameter 'family' multiple times, WordPress will merge them into one. 39 As Google will accept the parameter `family` multiple times, WordPress will merge them into one. 40 41 Be aware, that some caching plugins which also provide minification, may cause this plugin to break, as the fonts will be parsed before the plugin hook.
Note: See TracChangeset
for help on using the changeset viewer.