PluginProbe ʕ •ᴥ•ʔ
Modern Image Formats / trunk
Modern Image Formats vtrunk
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 19 hours ago helper.php 19 hours ago hooks.php 19 hours ago image-edit.php 19 hours ago load.php 19 hours ago picture-element.php 19 hours ago readme.txt 19 hours ago rest-api.php 19 hours ago settings.php 19 hours ago uninstall.php 19 hours ago
load.php
41 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.9
7 * Requires PHP: 7.4
8 * Version: 2.7.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 declare( strict_types = 1 );
19
20 // @codeCoverageIgnoreStart
21 if ( ! defined( 'ABSPATH' ) ) {
22 exit; // Exit if accessed directly.
23 }
24 // @codeCoverageIgnoreEnd
25
26 // Define required constants.
27 if ( defined( 'WEBP_UPLOADS_VERSION' ) ) {
28 return;
29 }
30
31 define( 'WEBP_UPLOADS_VERSION', '2.7.0' );
32 define( 'WEBP_UPLOADS_MAIN_FILE', plugin_basename( __FILE__ ) );
33
34 require_once __DIR__ . '/helper.php';
35 require_once __DIR__ . '/rest-api.php';
36 require_once __DIR__ . '/image-edit.php';
37 require_once __DIR__ . '/settings.php';
38 require_once __DIR__ . '/picture-element.php';
39 require_once __DIR__ . '/hooks.php';
40 require_once __DIR__ . '/deprecated.php';
41