From e30a8f0b94b4952d36cf84cc3c5e05341843c3e2 Mon Sep 17 00:00:00 2001 From: Nathaniel Taintor Date: Thu, 19 Nov 2015 10:16:24 -0500 Subject: [PATCH] Fix PHPCS warnings about strict mode for in_array --- inc/class-img-shortcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/class-img-shortcode.php b/inc/class-img-shortcode.php index c439599..e4b6b02 100644 --- a/inc/class-img-shortcode.php +++ b/inc/class-img-shortcode.php @@ -211,7 +211,7 @@ public static function callback( $attr ) { // If a link is specified, wrap the image in a link tag if ( ! empty( $attr['linkto'] ) && - ( in_array( $attr['linkto'], array( 'file', 'attachment' ) ) || + ( in_array( $attr['linkto'], array( 'file', 'attachment' ), true ) || ( 'custom' === $attr['linkto'] && ! empty( $attr['url'] ) ) ) ) { $image_html = self::linkify( $image_html, $attr ); }