PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | inc/3rd-party/hosting/wpengine.php +17 -13 1.5 → trunk View file →
@@ -1,17 +1,21 @@
1 -<?php
2 -defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' );
1 +<?php
2 +defined( 'ABSPATH' ) || exit;
3 3
4 4 if ( class_exists( 'WpeCommon' ) ) :
5 5
6 -/**
7 - * Conflict with WP Engine: it seems that WP Engine limits SQL queries size.
8 - *
9 - * @since 1.4.7
10 - * @author Jonathan Buttigieg
11 - */
12 -add_filter( 'imagify_unoptimized_attachment_limit', '_imagify_wengine_unoptimized_attachment_limit' );
13 -function _imagify_wengine_unoptimized_attachment_limit() {
14 - return 2500;
15 -}
6 + add_filter( 'imagify_unoptimized_attachment_limit', '_imagify_wpengine_unoptimized_attachment_limit' );
7 + add_filter( 'imagify_count_saving_data_limit', '_imagify_wpengine_unoptimized_attachment_limit' );
8 + /**
9 + * Change the limit for the number of posts: WP Engine limits SQL queries size to 2048 octets (16384 characters).
10 + *
11 + * @since 1.4.7
12 + * @since 1.6.7 Renamed (and deprecated) _imagify_wengine_unoptimized_attachment_limit() into _imagify_wpengine_unoptimized_attachment_limit().
13 + * @author Jonathan Buttigieg
14 + *
15 + * @return int
16 + */
17 + function _imagify_wpengine_unoptimized_attachment_limit() {
18 + return 2500;
19 + }
16 20
17 -endif;
21 +endif;