HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //var/www/html/triad-infosec/wp-content/plugins/imagify/inc/3rd-party/amp/amp.php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );

/**
 * 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;