PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | inc/3rd-party/amp/amp.php +4 -5 1.10 → trunk View file →
@@ -1,6 +1,6 @@
1 1 <?php
2 -defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
2 +defined( 'ABSPATH' ) || exit;
3 3
4 4 /**
5 5 * Compatibility with AMP plugin from WordPress.com VIP.
6 6 */
@@ -5,14 +5,13 @@
5 5 * Compatibility with AMP plugin from WordPress.com VIP.
6 6 */
7 7 if ( function_exists( 'is_amp_endpoint' ) ) :
8 8
9 - add_filter( 'imagify_allow_picture_tags_for_webp', 'imagify_amp_disable_picture_on_endpoint' );
9 + add_filter( 'imagify_allow_picture_tags_for_nextgen', 'imagify_amp_disable_picture_on_endpoint' );
10 10 /**
11 11 * Do not use <picture> tags in AMP pages.
12 12 *
13 - * @since 1.9
14 - * @author Grégory Viguier
13 + * @since 1.9
15 14 *
16 15 * @param bool $allow True to allow the use of <picture> tags (default). False to prevent their use.
17 16 * @return bool
18 17 */
@@ -17,7 +16,7 @@
17 16 * @return bool
18 17 */
19 18 function imagify_amp_disable_picture_on_endpoint( $allow ) {
20 19 return $allow && ! is_amp_endpoint();
21 - };
20 + }
22 21
23 22 endif;