Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
CRAP
n/a
0 / 0
jetpack_register_genericons
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
2
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 */
13function 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}