summaryrefslogtreecommitdiff
blob: 77b82d3c340f532bb6baa885ec4d74a66a4c6b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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.
 *
 * @package automattic/jetpack
 */

add_action( 'init', 'jetpack_register_genericons', 1 );

/**
 * Registers Genericons if not already done so by other code.
 */
function jetpack_register_genericons() {
	if ( ! wp_style_is( 'genericons', 'registered' ) ) {
		wp_register_style( 'genericons', plugins_url( 'genericons/genericons/genericons.css', __FILE__ ), false, '3.1' );
	}
}