| 1 |
<?php |
| 2 |
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' ); |
| 3 |
|
| 4 |
if ( class_exists( 'WpeCommon' ) ) : |
| 5 |
|
| 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 |
} |
| 20 |
|
| 21 |
endif; |
| 22 |
|