PluginProbe ʕ •ᴥ•ʔ
Modern Image Formats / 2.6.0
Modern Image Formats v2.6.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 1 year ago helper.php 10 months ago hooks.php 10 months ago image-edit.php 1 year ago load.php 10 months ago picture-element.php 1 year ago readme.txt 6 months ago rest-api.php 1 year ago settings.php 1 year ago uninstall.php 1 year 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.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 // @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.0' );
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