2019-11-15 23:26:29 +01:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Globally registers the 'genericons' style and font.
|
|
|
|
|
*
|
|
|
|
|
* This ensures any theme or plugin using it is on the latest version of Genericons, and helps to avoid conflicts.
|
2021-09-07 21:40:48 +02:00
|
|
|
*
|
|
|
|
|
* @package automattic/jetpack
|
2019-11-15 23:26:29 +01:00
|
|
|
*/
|
2021-09-07 21:40:48 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Registers Genericons if not already done so by other code.
|
|
|
|
|
*/
|
2019-11-15 23:26:29 +01:00
|
|
|
function jetpack_register_genericons() {
|
|
|
|
|
if ( ! wp_style_is( 'genericons', 'registered' ) ) {
|
|
|
|
|
wp_register_style( 'genericons', plugins_url( 'genericons/genericons/genericons.css', __FILE__ ), false, '3.1' );
|
|
|
|
|
}
|
|
|
|
|
}
|