blocks
3 years ago
build
3 years ago
fonts
8 years ago
genericons
6 years ago
lib
3 years ago
social-logos
5 years ago
accessible-focus.js
5 years ago
blogging-prompts.php
4 years ago
class.jetpack-provision.php
4 years ago
connect-button.js
3 years ago
crowdsignal-shortcode.js
5 years ago
crowdsignal-survey.js
5 years ago
facebook-embed.js
4 years ago
gallery-settings.js
5 years ago
genericons.php
4 years ago
jetpack-admin.js
5 years ago
jetpack-connection-banner.js
3 years ago
jetpack-deactivate-dialog.js
5 years ago
jetpack-modules.js
4 years ago
jetpack-modules.models.js
4 years ago
jetpack-modules.views.js
4 years ago
jetpack-recommendations-banner.js
5 years ago
jetpack-server-sandbox.php
4 years ago
polldaddy-shortcode.js
5 years ago
social-logos.php
5 years ago
twitter-timeline.js
5 years ago
genericons.php
20 lines
| 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 | add_action( 'init', 'jetpack_register_genericons', 1 ); |
| 11 | |
| 12 | /** |
| 13 | * Registers Genericons if not already done so by other code. |
| 14 | */ |
| 15 | function jetpack_register_genericons() { |
| 16 | if ( ! wp_style_is( 'genericons', 'registered' ) ) { |
| 17 | wp_register_style( 'genericons', plugins_url( 'genericons/genericons/genericons.css', __FILE__ ), false, '3.1' ); |
| 18 | } |
| 19 | } |
| 20 |