| @@ -7,11 +7,15 @@ | ||
| 7 | 7 | * |
| 8 | 8 | * @package automattic/jetpack |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -define( 'JETPACK_SOCIAL_LOGOS_URL', plugin_dir_url( __FILE__ ) . 'social-logos/' ); | |
| 12 | -define( 'JETPACK_SOCIAL_LOGOS_DIR', plugin_dir_path( __FILE__ ) . 'social-logos/' ); | |
| 11 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 12 | + exit( 0 ); | |
| 13 | +} | |
| 13 | 14 | |
| 15 | +define( 'JETPACK_SOCIAL_LOGOS_URL', plugin_dir_url( __FILE__ ) . 'build/social-logos/' ); | |
| 16 | +define( 'JETPACK_SOCIAL_LOGOS_DIR', plugin_dir_path( __FILE__ ) . 'build/social-logos/' ); | |
| 17 | + | |
| 14 | 18 | /** |
| 15 | 19 | * Globally registers the 'social-logos' style and font. |
| 16 | 20 | * |
| 17 | 21 | * This ensures any theme or plugin using it is on the latest version of Social Logos, and helps to avoid conflicts. |
| @@ -17,13 +21,11 @@ | ||
| 17 | 21 | * This ensures any theme or plugin using it is on the latest version of Social Logos, and helps to avoid conflicts. |
| 18 | 22 | */ |
| 19 | 23 | function jetpack_register_social_logos() { |
| 20 | 24 | if ( ! wp_style_is( 'social-logos', 'registered' ) ) { |
| 21 | - /** This filter is documented in modules/sharedaddy/sharing.php */ | |
| 22 | - $post_fix = apply_filters( 'jetpack_should_use_minified_assets', true ) ? '.min' : ''; | |
| 23 | 25 | wp_register_style( |
| 24 | 26 | 'social-logos', |
| 25 | - JETPACK_SOCIAL_LOGOS_URL . 'social-logos' . $post_fix . '.css', | |
| 27 | + JETPACK_SOCIAL_LOGOS_URL . 'social-logos.css', | |
| 26 | 28 | false, |
| 27 | 29 | JETPACK__VERSION |
| 28 | 30 | ); |
| 29 | 31 | } |