| 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 |
|