-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathrocket-lazy-load.php
63 lines (54 loc) · 2.19 KB
/
rocket-lazy-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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* Plugin Name: Lazy Load - Optimize Images
* Plugin URI: http://wordpress.org/plugins/rocket-lazy-load/
* Description: The tiny Lazy Load script for WordPress without jQuery or others libraries.
* Version: 2.3.9
* Requires at least: 4.9
* Requires PHP: 7.3
* Author: WP Rocket
* Author URI: https://wp-rocket.me
* Text Domain: rocket-lazy-load
* Domain Path: /languages
*
* @package RocketLazyloadPlugin
*
* Copyright 2015-2024 WP Media
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );
define( 'ROCKET_LL_VERSION', '2.3.9' );
define( 'ROCKET_LL_WP_VERSION', '4.9' );
define( 'ROCKET_LL_PHP_VERSION', '7.3' );
define( 'ROCKET_LL_BASENAME', plugin_basename( __FILE__ ) );
define( 'ROCKET_LL_PATH', realpath( plugin_dir_path( __FILE__ ) ) . '/' );
define( 'ROCKET_LL_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets/' );
define( 'ROCKET_LL_FRONT_JS_URL', ROCKET_LL_ASSETS_URL . 'js/' );
define( 'ROCKET_LL_INT_MAX', PHP_INT_MAX - 15 );
use function RocketLazyLoadPlugin\Dependencies\LaunchpadCore\boot;
require ROCKET_LL_PATH . 'includes/RocketLazyloadRequirementsCheck.php';
$rocket_lazyload_requirement_checks = new Rocket_Lazyload_Requirements_Check(
[
'plugin_name' => 'Lazy Load by WP Rocket',
'plugin_version' => ROCKET_LL_VERSION,
'wp_version' => ROCKET_LL_WP_VERSION,
'php_version' => ROCKET_LL_PHP_VERSION,
]
);
if ( $rocket_lazyload_requirement_checks->check() ) {
require __DIR__ . '/src/Dependencies/LaunchpadCore/boot.php';
boot( __FILE__ );
}
unset( $rocket_lazyload_requirement_checks );