webp-uploads
Last commit date
deprecated.php
1 year ago
helper.php
10 months ago
hooks.php
5 months ago
image-edit.php
5 months ago
load.php
5 months ago
picture-element.php
5 months ago
readme.txt
1 month ago
rest-api.php
1 year ago
settings.php
5 months ago
uninstall.php
5 months ago
load.php
39 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Modern Image Formats |
| 4 | * Plugin URI: https://github.com/WordPress/performance/tree/trunk/plugins/webp-uploads |
| 5 | * Description: Converts images to more modern formats such as WebP or AVIF during upload. |
| 6 | * Requires at least: 6.6 |
| 7 | * Requires PHP: 7.2 |
| 8 | * Version: 2.6.1 |
| 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: webp-uploads |
| 14 | * |
| 15 | * @package webp-uploads |
| 16 | */ |
| 17 | |
| 18 | // @codeCoverageIgnoreStart |
| 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | exit; // Exit if accessed directly. |
| 21 | } |
| 22 | // @codeCoverageIgnoreEnd |
| 23 | |
| 24 | // Define required constants. |
| 25 | if ( defined( 'WEBP_UPLOADS_VERSION' ) ) { |
| 26 | return; |
| 27 | } |
| 28 | |
| 29 | define( 'WEBP_UPLOADS_VERSION', '2.6.1' ); |
| 30 | define( 'WEBP_UPLOADS_MAIN_FILE', plugin_basename( __FILE__ ) ); |
| 31 | |
| 32 | require_once __DIR__ . '/helper.php'; |
| 33 | require_once __DIR__ . '/rest-api.php'; |
| 34 | require_once __DIR__ . '/image-edit.php'; |
| 35 | require_once __DIR__ . '/settings.php'; |
| 36 | require_once __DIR__ . '/picture-element.php'; |
| 37 | require_once __DIR__ . '/hooks.php'; |
| 38 | require_once __DIR__ . '/deprecated.php'; |
| 39 |