<?php /** * Loads the devicepx library which improves the resolution of gravatars and * wordpress.com uploads on hi-res and zoomed browsers. * * This feature will only be activated for themes that declare their support. * This can be done by adding code similar to the following during the * 'after_setup_theme' action: * * add_theme_support( 'jetpack-devicepx' ); * * @package automattic/jetpack */ _deprecated_file( __FILE__, 'jetpack-13.4' ); /** * Enqueue the devicepx JS library, if enabled. The feature must * be enabled earlier during `after_setup_theme`. * * @uses current_theme_supports, add_action */ function jetpack_devicepx_init() { if ( current_theme_supports( 'jetpack-devicepx' ) ) { _deprecated_function( __FUNCTION__, 'jetpack-13.4' ); add_action( 'wp_enqueue_scripts', 'jetpack_devicepx_enqueue' ); add_action( 'customize_controls_enqueue_scripts', 'jetpack_devicepx_enqueue' ); add_action( 'admin_enqueue_scripts', 'jetpack_devicepx_enqueue' ); } } // Use a late priority to ensure that plugins and themes can enable or disable this feature. add_action( 'init', 'jetpack_devicepx_init', 99 ); /** * Enqueue the devicepx JS library. * * @uses wp_enqueue_script */ function jetpack_devicepx_enqueue() { _deprecated_function( __FUNCTION__, 'jetpack-13.4' ); wp_enqueue_script( 'devicepx', 'https://s0.wp.com/wp-content/js/devicepx-jetpack.js', array(), gmdate( 'oW' ), true ); }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
compat | Folder | 0755 |
|
|
content-options | Folder | 0755 |
|
|
js | Folder | 0755 |
|
|
responsive-videos | Folder | 0755 |
|
|
site-logo | Folder | 0755 |
|
|
social-menu | Folder | 0755 |
|
|
content-options.php | File | 8.26 KB | 0644 |
|
devicepx.php | File | 1.4 KB | 0644 |
|
featured-content.php | File | 14.42 KB | 0644 |
|
infinite-scroll.php | File | 541 B | 0644 |
|
responsive-videos.php | File | 6.11 KB | 0644 |
|
site-breadcrumbs.php | File | 4.26 KB | 0644 |
|
site-logo.php | File | 2.68 KB | 0644 |
|
social-links.php | File | 4.68 KB | 0644 |
|
social-menu.php | File | 3.7 KB | 0644 |
|