HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/locationdebateau/wp-content/plugins/imagify/inc/3rd-party/amp/amp.php
<?php
defined( 'ABSPATH' ) || exit;

/**
 * Compatibility with AMP plugin from WordPress.com VIP.
 */
if ( function_exists( 'is_amp_endpoint' ) ) :

	add_filter( 'imagify_allow_picture_tags_for_nextgen', 'imagify_amp_disable_picture_on_endpoint' );
	/**
	 * Do not use <picture> tags in AMP pages.
	 *
	 * @since 1.9
	 *
	 * @param  bool $allow True to allow the use of <picture> tags (default). False to prevent their use.
	 * @return bool
	 */
	function imagify_amp_disable_picture_on_endpoint( $allow ) {
		return $allow && ! is_amp_endpoint();
	}

endif;