summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/genericons.php')
-rw-r--r--plugins/jetpack/_inc/genericons.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/jetpack/_inc/genericons.php b/plugins/jetpack/_inc/genericons.php
index fc0e6f4f..77b82d3c 100644
--- a/plugins/jetpack/_inc/genericons.php
+++ b/plugins/jetpack/_inc/genericons.php
@@ -1,11 +1,17 @@
<?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' );