| @@ -1,0 +1,17 @@ | ||
| 1 | +<?php | |
| 2 | +/** | |
| 3 | + * Globally registers the 'genericons' style and font. | |
| 4 | + * | |
| 5 | + * This ensures any theme or plugin using it is on the latest version of Genericons, and helps to avoid conflicts. | |
| 6 | + * | |
| 7 | + * @package automattic/jetpack | |
| 8 | + */ | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * Registers Genericons if not already done so by other code. | |
| 12 | + */ | |
| 13 | +function jetpack_register_genericons() { | |
| 14 | + if ( ! wp_style_is( 'genericons', 'registered' ) ) { | |
| 15 | + wp_register_style( 'genericons', plugins_url( 'genericons/genericons/genericons.css', __FILE__ ), false, '3.1' ); | |
| 16 | + } | |
| 17 | +} | |