PluginProbe ʕ •ᴥ•ʔ
Modern Image Formats / 2.4.0
Modern Image Formats v2.4.0
2.7.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.1.1 2.0.0 2.0.1 2.0.2 2.1.0 2.2.0 2.3.0 2.4.0 2.5.0 2.5.1 2.6.0 2.6.1
webp-uploads / load.php
webp-uploads Last commit date
deprecated.php 2 years ago helper.php 1 year ago hooks.php 1 year ago image-edit.php 2 years ago load.php 1 year ago picture-element.php 1 year ago readme.txt 1 year ago rest-api.php 2 years ago settings.php 1 year ago uninstall.php 1 year ago
load.php
38 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.4.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: webp-uploads
14 *
15 * @package webp-uploads
16 */
17
18 // Exit if accessed directly.
19 if ( ! defined( 'ABSPATH' ) ) {
20 exit;
21 }
22
23 // Define required constants.
24 if ( defined( 'WEBP_UPLOADS_VERSION' ) ) {
25 return;
26 }
27
28 define( 'WEBP_UPLOADS_VERSION', '2.4.0' );
29 define( 'WEBP_UPLOADS_MAIN_FILE', plugin_basename( __FILE__ ) );
30
31 require_once __DIR__ . '/helper.php';
32 require_once __DIR__ . '/rest-api.php';
33 require_once __DIR__ . '/image-edit.php';
34 require_once __DIR__ . '/settings.php';
35 require_once __DIR__ . '/picture-element.php';
36 require_once __DIR__ . '/hooks.php';
37 require_once __DIR__ . '/deprecated.php';
38