PluginProbe
Enhanced Responsive Images / 1.8.0
Enhanced Responsive Images v1.8.0
1.8.0 trunk 1.0.1 1.0.2 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0
auto-sizes / auto-sizes.php

auto-sizes.php in Enhanced Responsive Images 1.8.0, at auto-sizes.php

35 lines 954 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Enhanced Responsive Images
4 * Plugin URI: https://github.com/WordPress/performance/tree/trunk/plugins/auto-sizes
5 * Description: Improves responsive images with better sizes calculations and auto-sizes for lazy-loaded images.
6 * Requires at least: 6.9
7 * Requires PHP: 7.4
8 * Version: 1.8.0
9 * Author: WordPress Performance Team
10 * Author URI: https://make.wordpress.org/performance/
11 * License: GPLv2 or later
12 * License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
13 * Text Domain: auto-sizes
14 *
15 * @package auto-sizes
16 */
17
18 declare( strict_types = 1 );
19
20 // @codeCoverageIgnoreStart
21 if ( ! defined( 'ABSPATH' ) ) {
22 exit; // Exit if accessed directly.
23 }
24
25 // Define the constant.
26 if ( defined( 'IMAGE_AUTO_SIZES_VERSION' ) ) {
27 return;
28 }
29
30 define( 'IMAGE_AUTO_SIZES_VERSION', '1.8.0' );
31
32 require_once __DIR__ . '/includes/improve-calculate-sizes.php';
33 require_once __DIR__ . '/hooks.php';
34 // @codeCoverageIgnoreEnd
35