severity = self::SEVERITY_MEDIUM; parent::__construct(); } /** * Set the message property * * @since 2.0.6 * @access public */ public function define_message() { $this->message = sprintf( __( 'It seems your are using %1$sWP Rocket%2$s with Lazy loading for images option active. %3$s Optimole already provides a lazy loading mechanism by it\'s own which might conflict with this. If you would like to further use Optimole lazy loading feature, you can turn that off from %4$sSettings -> WP Rocket -> Media%5$s page. ', 'optimole-wp' ), '', '', '
', '', '' ); } /** * Determine if conflict is applicable. * * @return bool * @since 2.0.6 * @access public */ public function is_conflict_valid() { if ( ! is_plugin_active( 'wp-rocket/wp-rocket.php' ) && ! is_plugin_active( 'wp-rocket/wp-rocket.php' ) ) { return false; } if ( ! function_exists( 'get_rocket_option' ) ) { return false; } return get_rocket_option( 'lazyload', false ); } }