From 0d1097e77fffbb64fbefe5996336361cb7e262b0 Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Fri, 7 Oct 2022 06:59:21 +0200 Subject: [PATCH] Add third argument to in_array() --- inc/extras.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/extras.php b/inc/extras.php index 4fdbea6b..5f017f58 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -169,8 +169,8 @@ if ( ! function_exists( 'understrap_kses_title' ) ) { $allowed_tags = wp_kses_allowed_html( 'post' ); $allowed_protocols = wp_allowed_protocols(); if ( - in_array( 'polylang/polylang.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) - || in_array( 'polylang-pro/polylang.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) + in_array( 'polylang/polylang.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) + || in_array( 'polylang-pro/polylang.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ), true ) ) { if ( ! in_array( 'data', $allowed_protocols, true ) ) { $allowed_protocols[] = 'data';