Add third argument to in_array()

This commit is contained in:
IanDelMar 2022-10-07 06:59:21 +02:00
parent 20ff5eff2c
commit 0d1097e77f
1 changed files with 2 additions and 2 deletions

View File

@ -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';