-
Notifications
You must be signed in to change notification settings - Fork 87
/
load.php
31 lines (27 loc) · 873 Bytes
/
load.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
* Plugin Name: Image Placeholders
* Plugin URI: https://github.com/WordPress/performance/tree/trunk/plugins/dominant-color-images
* Description: Displays placeholders based on an image's dominant color while the image is loading.
* Requires at least: 6.4
* Requires PHP: 7.0
* Version: 1.1.0
* Author: WordPress Performance Team
* Author URI: https://make.wordpress.org/performance/
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* Text Domain: dominant-color-images
*
* @package dominant-color-images
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Define required constants.
if ( defined( 'DOMINANT_COLOR_IMAGES_VERSION' ) ) {
return;
}
define( 'DOMINANT_COLOR_IMAGES_VERSION', '1.1.0' );
require_once __DIR__ . '/helper.php';
require_once __DIR__ . '/hooks.php';