Version Description
Download this release
Release Info
Developer | optimole |
Plugin | Image optimization & Lazy Load by Optimole |
Version | 3.4.4 |
Comparing to | |
See all releases |
Code changes from version 3.4.3 to 3.4.4
- CHANGELOG.md +5 -0
- assets/js/optimole_media.js +7 -10
- inc/app_replacer.php +3 -0
- inc/compatibilities/woocommerce.php +47 -2
- inc/compatibilities/wp_bakery.php +54 -0
- inc/manager.php +2 -1
- inc/media_offload.php +2 -2
- optimole-wp.php +2 -2
- readme.txt +8 -0
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +7 -7
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +2 -2
- vendor/composer/installed.php +4 -4
CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 3.4.3](https://github.com/Codeinwp/optimole-wp/compare/v3.4.2...v3.4.3) (2022-05-30)
|
2 |
|
3 |
* Enhance Thrive compatibility when users are offloading the images to Optimole cloud.
|
1 |
+
##### [Version 3.4.4](https://github.com/Codeinwp/optimole-wp/compare/v3.4.3...v3.4.4) (2022-07-14)
|
2 |
+
|
3 |
+
* Enhance WooCommerce and WPBakery compatibilities when users are offloading the images to Optimole cloud.
|
4 |
+
* Improve compatibility with all plugins that are editing the media modal tabs.
|
5 |
+
|
6 |
##### [Version 3.4.3](https://github.com/Codeinwp/optimole-wp/compare/v3.4.2...v3.4.3) (2022-05-30)
|
7 |
|
8 |
* Enhance Thrive compatibility when users are offloading the images to Optimole cloud.
|
assets/js/optimole_media.js
CHANGED
@@ -30,17 +30,14 @@ jQuery(document).ready( function($){
|
|
30 |
}
|
31 |
);
|
32 |
},
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
35 |
routerView.set({
|
36 |
-
upload: {
|
37 |
-
text: l10n.uploadFilesTitle,
|
38 |
-
priority: 20
|
39 |
-
},
|
40 |
-
browse: {
|
41 |
-
text: l10n.mediaLibraryTitle,
|
42 |
-
priority: 40
|
43 |
-
},
|
44 |
optimole: {
|
45 |
text: 'Optimole',
|
46 |
priority: 60
|
30 |
}
|
31 |
);
|
32 |
},
|
33 |
+
/**
|
34 |
+
* overwrite router to add Optimole media browser
|
35 |
+
*
|
36 |
+
* @param {wp.media.view.Router} routerView
|
37 |
+
*/
|
38 |
+
browseRouter( routerView ) {
|
39 |
+
oldMediaFrame.prototype.browseRouter.apply( this, arguments );
|
40 |
routerView.set({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
optimole: {
|
42 |
text: 'Optimole',
|
43 |
priority: 60
|
inc/app_replacer.php
CHANGED
@@ -549,6 +549,9 @@ abstract class Optml_App_Replacer {
|
|
549 |
**/
|
550 |
public function strip_image_size_from_url( $url ) {
|
551 |
|
|
|
|
|
|
|
552 |
if ( preg_match( '#(-\d+x\d+(?:_c)?|(@2x))\.(' . implode( '|', array_keys( Optml_Config::$image_extensions ) ) . '){1}$#i', $url, $src_parts ) ) {
|
553 |
$stripped_url = str_replace( $src_parts[1], '', $url );
|
554 |
// Extracts the file path to the image minus the base url
|
549 |
**/
|
550 |
public function strip_image_size_from_url( $url ) {
|
551 |
|
552 |
+
if ( apply_filters( 'optml_should_skip_strip_image_size', false, $url ) === true ) {
|
553 |
+
return $url;
|
554 |
+
}
|
555 |
if ( preg_match( '#(-\d+x\d+(?:_c)?|(@2x))\.(' . implode( '|', array_keys( Optml_Config::$image_extensions ) ) . '){1}$#i', $url, $src_parts ) ) {
|
556 |
$stripped_url = str_replace( $src_parts[1], '', $url );
|
557 |
// Extracts the file path to the image minus the base url
|
inc/compatibilities/woocommerce.php
CHANGED
@@ -15,14 +15,20 @@ class Optml_woocommerce extends Optml_compatibility {
|
|
15 |
*/
|
16 |
function should_load() {
|
17 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
18 |
-
return
|
19 |
}
|
20 |
|
21 |
/**
|
22 |
* Register integration details.
|
23 |
*/
|
24 |
public function register() {
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
/**
|
28 |
* Add ignore lazyload flag.
|
@@ -36,4 +42,43 @@ class Optml_woocommerce extends Optml_compatibility {
|
|
36 |
|
37 |
return $flags;
|
38 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
15 |
*/
|
16 |
function should_load() {
|
17 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
18 |
+
return is_plugin_active( 'woocommerce/woocommerce.php' );
|
19 |
}
|
20 |
|
21 |
/**
|
22 |
* Register integration details.
|
23 |
*/
|
24 |
public function register() {
|
25 |
+
if ( Optml_Main::instance()->admin->settings->use_lazyload() ) {
|
26 |
+
add_filter( 'optml_possible_lazyload_flags', [ $this, 'add_ignore_lazyload' ], PHP_INT_MAX, 1 );
|
27 |
+
}
|
28 |
+
|
29 |
+
if ( Optml_Main::instance()->admin->settings->get( 'offload_media' ) === 'enabled' ) {
|
30 |
+
add_filter( 'optml_offload_images_post_parents', [ $this, 'add_product_pages_to_image_query' ], PHP_INT_MAX, 1 );
|
31 |
+
}
|
32 |
}
|
33 |
/**
|
34 |
* Add ignore lazyload flag.
|
42 |
|
43 |
return $flags;
|
44 |
}
|
45 |
+
/**
|
46 |
+
* Ads the product pages to the list of posts parents when querying images for offload.
|
47 |
+
*
|
48 |
+
* @param array $parents Default post parents.
|
49 |
+
*
|
50 |
+
* @return array New post parents that include product pages.
|
51 |
+
*/
|
52 |
+
public function add_product_pages_to_image_query( $parents = [ 0 ] ) {
|
53 |
+
$paged = 1;
|
54 |
+
$query_args = [
|
55 |
+
'post_type' => 'product',
|
56 |
+
'fields' => 'ids',
|
57 |
+
'posts_per_page' => 150,
|
58 |
+
'post_status' => 'publish',
|
59 |
+
'paged' => $paged,
|
60 |
+
];
|
61 |
+
$products = new \WP_Query( $query_args );
|
62 |
+
$ids = $products->get_posts();
|
63 |
+
while ( ! empty( $ids ) ) {
|
64 |
+
$paged++;
|
65 |
+
$parents = array_merge( $parents, $ids );
|
66 |
+
$query_args['paged'] = $paged;
|
67 |
+
$products = new \WP_Query( $query_args );
|
68 |
+
$ids = $products->get_posts();
|
69 |
+
}
|
70 |
+
|
71 |
+
return $parents;
|
72 |
+
}
|
73 |
+
/**
|
74 |
+
* Should we early load the compatibility?
|
75 |
+
*
|
76 |
+
* @return bool Whether to load the compatibility or not.
|
77 |
+
*/
|
78 |
+
public function should_load_early() {
|
79 |
+
if ( Optml_Main::instance()->admin->settings->get( 'offload_media' ) === 'enabled' ) {
|
80 |
+
return true;
|
81 |
+
}
|
82 |
+
return false;
|
83 |
+
}
|
84 |
}
|
inc/compatibilities/wp_bakery.php
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class Optml_wp_bakery
|
5 |
+
*
|
6 |
+
* @reason Adding images from wpbakery pages to offload.
|
7 |
+
*/
|
8 |
+
class Optml_wp_bakery extends Optml_compatibility {
|
9 |
+
|
10 |
+
|
11 |
+
/**
|
12 |
+
* Should we load the integration logic.
|
13 |
+
*
|
14 |
+
* @return bool Should we load.
|
15 |
+
*/
|
16 |
+
function should_load() {
|
17 |
+
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
18 |
+
return is_plugin_active( 'js_composer/js_composer.php' ) && Optml_Main::instance()->admin->settings->get( 'offload_media' ) === 'enabled';
|
19 |
+
}
|
20 |
+
|
21 |
+
/**
|
22 |
+
* Register integration details.
|
23 |
+
*/
|
24 |
+
public function register() {
|
25 |
+
add_filter( 'optml_content_images_to_update', [ $this, 'add_images_from_wp_bakery_to_offload' ], PHP_INT_MAX, 2 );
|
26 |
+
}
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Ads the product pages to the list of posts parents when querying images for offload.
|
30 |
+
*
|
31 |
+
* @param array $found_images The found images from the default workflow.
|
32 |
+
* @param string $content Post content to look for images.
|
33 |
+
*
|
34 |
+
* @return array The images array with the specific bakery images.
|
35 |
+
*/
|
36 |
+
public function add_images_from_wp_bakery_to_offload( $found_images, $content ) {
|
37 |
+
|
38 |
+
$regex = '/image="(\d+)"/Uu';
|
39 |
+
preg_match_all(
|
40 |
+
$regex,
|
41 |
+
$content,
|
42 |
+
$images_to_append
|
43 |
+
);
|
44 |
+
return array_merge( $found_images, $images_to_append[1] );
|
45 |
+
}
|
46 |
+
/**
|
47 |
+
* Should we early load the compatibility?
|
48 |
+
*
|
49 |
+
* @return bool Whether to load the compatibility or not.
|
50 |
+
*/
|
51 |
+
public function should_load_early() {
|
52 |
+
return true;
|
53 |
+
}
|
54 |
+
}
|
inc/manager.php
CHANGED
@@ -80,6 +80,7 @@ final class Optml_Manager {
|
|
80 |
'smart_search_woocommerce',
|
81 |
'facetwp',
|
82 |
'wp_rest_cache',
|
|
|
83 |
];
|
84 |
/**
|
85 |
* The current state of the buffer.
|
@@ -569,7 +570,7 @@ final class Optml_Manager {
|
|
569 |
$extracted_urls = array_filter(
|
570 |
$extracted_urls,
|
571 |
function ( $value ) use ( $slashed_config ) {
|
572 |
-
return strpos( $value, Optml_Config::$service_url ) === false && strpos( $value, $slashed_config ) === false;
|
573 |
}
|
574 |
);
|
575 |
$upload_resource = $this->tag_replacer->get_upload_resource();
|
80 |
'smart_search_woocommerce',
|
81 |
'facetwp',
|
82 |
'wp_rest_cache',
|
83 |
+
'wp_bakery',
|
84 |
];
|
85 |
/**
|
86 |
* The current state of the buffer.
|
570 |
$extracted_urls = array_filter(
|
571 |
$extracted_urls,
|
572 |
function ( $value ) use ( $slashed_config ) {
|
573 |
+
return strpos( $value, Optml_Config::$service_url ) === false && strpos( $value, $slashed_config ) === false || Optml_Media_Offload::is_not_processed_image( $value );
|
574 |
}
|
575 |
);
|
576 |
$upload_resource = $this->tag_replacer->get_upload_resource();
|
inc/media_offload.php
CHANGED
@@ -408,7 +408,7 @@ class Optml_Media_Offload extends Optml_App_Replacer {
|
|
408 |
$found_images[] = intval( $attachment_id );
|
409 |
}
|
410 |
}
|
411 |
-
return $found_images;
|
412 |
}
|
413 |
|
414 |
/**
|
@@ -1042,7 +1042,7 @@ class Optml_Media_Offload extends Optml_App_Replacer {
|
|
1042 |
$args ['post_type'] = 'attachment';
|
1043 |
$args ['post_mime_type'] = 'image';
|
1044 |
$args ['post_status'] = 'inherit';
|
1045 |
-
$args
|
1046 |
if ( $action === 'offload_images' ) {
|
1047 |
$args['meta_query'] = [
|
1048 |
'relation' => 'AND',
|
408 |
$found_images[] = intval( $attachment_id );
|
409 |
}
|
410 |
}
|
411 |
+
return apply_filters( 'optml_content_images_to_update', $found_images, $content );
|
412 |
}
|
413 |
|
414 |
/**
|
1042 |
$args ['post_type'] = 'attachment';
|
1043 |
$args ['post_mime_type'] = 'image';
|
1044 |
$args ['post_status'] = 'inherit';
|
1045 |
+
$args['post_parent__in'] = apply_filters( 'optml_offload_images_post_parents', [ 0 ] );
|
1046 |
if ( $action === 'offload_images' ) {
|
1047 |
$args['meta_query'] = [
|
1048 |
'relation' => 'AND',
|
optimole-wp.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* Plugin Name: Image optimization service by Optimole
|
4 |
* Description: Complete handling of your website images.
|
5 |
-
* Version: 3.4.
|
6 |
* Author: Optimole
|
7 |
* Author URI: https://optimole.com
|
8 |
* License: GPL-2.0+
|
@@ -74,7 +74,7 @@ function optml() {
|
|
74 |
}
|
75 |
define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
|
76 |
define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
|
77 |
-
define( 'OPTML_VERSION', '3.4.
|
78 |
define( 'OPTML_NAMESPACE', 'optml' );
|
79 |
define( 'OPTML_BASEFILE', __FILE__ );
|
80 |
// Fallback for old PHP versions when this constant is not defined.
|
2 |
/**
|
3 |
* Plugin Name: Image optimization service by Optimole
|
4 |
* Description: Complete handling of your website images.
|
5 |
+
* Version: 3.4.4
|
6 |
* Author: Optimole
|
7 |
* Author URI: https://optimole.com
|
8 |
* License: GPL-2.0+
|
74 |
}
|
75 |
define( 'OPTML_URL', plugin_dir_url( __FILE__ ) );
|
76 |
define( 'OPTML_PATH', plugin_dir_path( __FILE__ ) );
|
77 |
+
define( 'OPTML_VERSION', '3.4.4' );
|
78 |
define( 'OPTML_NAMESPACE', 'optml' );
|
79 |
define( 'OPTML_BASEFILE', __FILE__ );
|
80 |
// Fallback for old PHP versions when this constant is not defined.
|
readme.txt
CHANGED
@@ -95,6 +95,14 @@ Premium users will be able to optimize images starting with more than 25k monthl
|
|
95 |
|
96 |
== Changelog ==
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
##### [Version 3.4.3](https://github.com/Codeinwp/optimole-wp/compare/v3.4.2...v3.4.3) (2022-05-30)
|
99 |
|
100 |
* Enhance Thrive compatibility when users are offloading the images to Optimole cloud.
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
+
##### [Version 3.4.4](https://github.com/Codeinwp/optimole-wp/compare/v3.4.3...v3.4.4) (2022-07-14)
|
99 |
+
|
100 |
+
* Enhance WooCommerce and WPBakery compatibilities when users are offloading the images to Optimole cloud.
|
101 |
+
* Improve compatibility with all plugins that are editing the media modal tabs.
|
102 |
+
|
103 |
+
|
104 |
+
|
105 |
+
|
106 |
##### [Version 3.4.3](https://github.com/Codeinwp/optimole-wp/compare/v3.4.2...v3.4.3) (2022-05-30)
|
107 |
|
108 |
* Enhance Thrive compatibility when users are offloading the images to Optimole cloud.
|
vendor/autoload.php
CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|
9 |
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
-
return
|
9 |
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
+
return ComposerAutoloaderInite9f42e73a147bb7e66081f80aa6517cf::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -28,7 +28,7 @@ class InstalledVersions
|
|
28 |
{
|
29 |
/**
|
30 |
* @var mixed[]|null
|
31 |
-
* @psalm-var array{root: array{name: string,
|
32 |
*/
|
33 |
private static $installed;
|
34 |
|
@@ -39,7 +39,7 @@ class InstalledVersions
|
|
39 |
|
40 |
/**
|
41 |
* @var array[]
|
42 |
-
* @psalm-var array<string, array{root: array{name: string,
|
43 |
*/
|
44 |
private static $installedByVendor = array();
|
45 |
|
@@ -243,7 +243,7 @@ class InstalledVersions
|
|
243 |
|
244 |
/**
|
245 |
* @return array
|
246 |
-
* @psalm-return array{name: string,
|
247 |
*/
|
248 |
public static function getRootPackage()
|
249 |
{
|
@@ -257,7 +257,7 @@ class InstalledVersions
|
|
257 |
*
|
258 |
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
259 |
* @return array[]
|
260 |
-
* @psalm-return array{root: array{name: string,
|
261 |
*/
|
262 |
public static function getRawData()
|
263 |
{
|
@@ -280,7 +280,7 @@ class InstalledVersions
|
|
280 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
281 |
*
|
282 |
* @return array[]
|
283 |
-
* @psalm-return list<array{root: array{name: string,
|
284 |
*/
|
285 |
public static function getAllRawData()
|
286 |
{
|
@@ -303,7 +303,7 @@ class InstalledVersions
|
|
303 |
* @param array[] $data A vendor/composer/installed.php data set
|
304 |
* @return void
|
305 |
*
|
306 |
-
* @psalm-param array{root: array{name: string,
|
307 |
*/
|
308 |
public static function reload($data)
|
309 |
{
|
@@ -313,7 +313,7 @@ class InstalledVersions
|
|
313 |
|
314 |
/**
|
315 |
* @return array[]
|
316 |
-
* @psalm-return list<array{root: array{name: string,
|
317 |
*/
|
318 |
private static function getInstalled()
|
319 |
{
|
28 |
{
|
29 |
/**
|
30 |
* @var mixed[]|null
|
31 |
+
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
|
32 |
*/
|
33 |
private static $installed;
|
34 |
|
39 |
|
40 |
/**
|
41 |
* @var array[]
|
42 |
+
* @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
43 |
*/
|
44 |
private static $installedByVendor = array();
|
45 |
|
243 |
|
244 |
/**
|
245 |
* @return array
|
246 |
+
* @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
|
247 |
*/
|
248 |
public static function getRootPackage()
|
249 |
{
|
257 |
*
|
258 |
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
259 |
* @return array[]
|
260 |
+
* @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
|
261 |
*/
|
262 |
public static function getRawData()
|
263 |
{
|
280 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
281 |
*
|
282 |
* @return array[]
|
283 |
+
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
284 |
*/
|
285 |
public static function getAllRawData()
|
286 |
{
|
303 |
* @param array[] $data A vendor/composer/installed.php data set
|
304 |
* @return void
|
305 |
*
|
306 |
+
* @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
|
307 |
*/
|
308 |
public static function reload($data)
|
309 |
{
|
313 |
|
314 |
/**
|
315 |
* @return array[]
|
316 |
+
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
317 |
*/
|
318 |
private static function getInstalled()
|
319 |
{
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,18 +22,18 @@ class ComposerAutoloaderInit53d2919c424cd6f0a10cc367726074d1
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
require __DIR__ . '/autoload_static.php';
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
|
32 |
$loader->register(true);
|
33 |
|
34 |
-
$includeFiles = \Composer\Autoload\
|
35 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
36 |
-
|
37 |
}
|
38 |
|
39 |
return $loader;
|
@@ -45,7 +45,7 @@ class ComposerAutoloaderInit53d2919c424cd6f0a10cc367726074d1
|
|
45 |
* @param string $file
|
46 |
* @return void
|
47 |
*/
|
48 |
-
function
|
49 |
{
|
50 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
51 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInite9f42e73a147bb7e66081f80aa6517cf
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInite9f42e73a147bb7e66081f80aa6517cf', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInite9f42e73a147bb7e66081f80aa6517cf', 'loadClassLoader'));
|
28 |
|
29 |
require __DIR__ . '/autoload_static.php';
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInite9f42e73a147bb7e66081f80aa6517cf::getInitializer($loader));
|
31 |
|
32 |
$loader->register(true);
|
33 |
|
34 |
+
$includeFiles = \Composer\Autoload\ComposerStaticInite9f42e73a147bb7e66081f80aa6517cf::$files;
|
35 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
36 |
+
composerRequiree9f42e73a147bb7e66081f80aa6517cf($fileIdentifier, $file);
|
37 |
}
|
38 |
|
39 |
return $loader;
|
45 |
* @param string $file
|
46 |
* @return void
|
47 |
*/
|
48 |
+
function composerRequiree9f42e73a147bb7e66081f80aa6517cf($fileIdentifier, $file)
|
49 |
{
|
50 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
51 |
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
|
@@ -17,7 +17,7 @@ class ComposerStaticInit53d2919c424cd6f0a10cc367726074d1
|
|
17 |
public static function getInitializer(ClassLoader $loader)
|
18 |
{
|
19 |
return \Closure::bind(function () use ($loader) {
|
20 |
-
$loader->classMap =
|
21 |
|
22 |
}, null, ClassLoader::class);
|
23 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInite9f42e73a147bb7e66081f80aa6517cf
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'9fef4034ed73e26a337d9856ea126f7f' => __DIR__ . '/..' . '/codeinwp/themeisle-sdk/load.php',
|
17 |
public static function getInitializer(ClassLoader $loader)
|
18 |
{
|
19 |
return \Closure::bind(function () use ($loader) {
|
20 |
+
$loader->classMap = ComposerStaticInite9f42e73a147bb7e66081f80aa6517cf::$classMap;
|
21 |
|
22 |
}, null, ClassLoader::class);
|
23 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,31 +1,31 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
|
|
3 |
'pretty_version' => '1.1.2',
|
4 |
'version' => '1.1.2.0',
|
|
|
5 |
'type' => 'library',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => NULL,
|
9 |
-
'name' => 'codeinwp/optimole-wp',
|
10 |
'dev' => false,
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'codeinwp/optimole-wp' => array(
|
14 |
'pretty_version' => '1.1.2',
|
15 |
'version' => '1.1.2.0',
|
|
|
16 |
'type' => 'library',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => NULL,
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'codeinwp/themeisle-sdk' => array(
|
23 |
'pretty_version' => '3.2.24',
|
24 |
'version' => '3.2.24.0',
|
|
|
25 |
'type' => 'library',
|
26 |
'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk',
|
27 |
'aliases' => array(),
|
28 |
-
'reference' => 'e5c171e33120fdf8ce6dd3a7bddad984583023f0',
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
),
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
+
'name' => 'codeinwp/optimole-wp',
|
4 |
'pretty_version' => '1.1.2',
|
5 |
'version' => '1.1.2.0',
|
6 |
+
'reference' => NULL,
|
7 |
'type' => 'library',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
|
|
|
|
10 |
'dev' => false,
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'codeinwp/optimole-wp' => array(
|
14 |
'pretty_version' => '1.1.2',
|
15 |
'version' => '1.1.2.0',
|
16 |
+
'reference' => NULL,
|
17 |
'type' => 'library',
|
18 |
'install_path' => __DIR__ . '/../../',
|
19 |
'aliases' => array(),
|
|
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'codeinwp/themeisle-sdk' => array(
|
23 |
'pretty_version' => '3.2.24',
|
24 |
'version' => '3.2.24.0',
|
25 |
+
'reference' => 'e5c171e33120fdf8ce6dd3a7bddad984583023f0',
|
26 |
'type' => 'library',
|
27 |
'install_path' => __DIR__ . '/../codeinwp/themeisle-sdk',
|
28 |
'aliases' => array(),
|
|
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
),
|