summaryrefslogtreecommitdiff
blob: c7c7187e26b58d3e5c66045d44dff90aa63a318f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
/**
 * Globally registers the 'social-logos' style and font.
 *
 * This ensures any theme or plugin using it is on the latest version of Social Logos, and helps to avoid conflicts.
 */
add_action( 'init', 'jetpack_register_social_logos', 1 );
function jetpack_register_social_logos() {
	if ( ! wp_style_is( 'social-logos', 'registered' ) ) {
		$post_fix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
		wp_register_style( 'social-logos', plugins_url( 'social-logos/social-logos' . $post_fix . '.css', __FILE__ ), false, '1' );
	}
}