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