diff --git a/src/wp-includes/SimplePie/Cache/MySQL.php b/src/wp-includes/SimplePie/Cache/MySQL.php
index a684eb8334..6ce275b857 100644
--- a/src/wp-includes/SimplePie/Cache/MySQL.php
+++ b/src/wp-includes/SimplePie/Cache/MySQL.php
@@ -126,7 +126,7 @@ class SimplePie_Cache_MySQL extends SimplePie_Cache_DB
 			$db[] = $row;
 		}
 
-		if (!in_array($this->options['extras']['prefix'] . 'cache_data', $db))
+		if (!in_array($this->options['extras']['prefix'] . 'cache_data', $db, true))
 		{
 			$query = $this->mysql->exec('CREATE TABLE `' . $this->options['extras']['prefix'] . 'cache_data` (`id` TEXT CHARACTER SET utf8 NOT NULL, `items` SMALLINT NOT NULL DEFAULT 0, `data` BLOB NOT NULL, `mtime` INT UNSIGNED NOT NULL, UNIQUE (`id`(125)))');
 			if ($query === false)
@@ -137,7 +137,7 @@ class SimplePie_Cache_MySQL extends SimplePie_Cache_DB
 			}
 		}
 
-		if (!in_array($this->options['extras']['prefix'] . 'items', $db))
+		if (!in_array($this->options['extras']['prefix'] . 'items', $db, true))
 		{
 			$query = $this->mysql->exec('CREATE TABLE `' . $this->options['extras']['prefix'] . 'items` (`feed_id` TEXT CHARACTER SET utf8 NOT NULL, `id` TEXT CHARACTER SET utf8 NOT NULL, `data` MEDIUMBLOB NOT NULL, `posted` INT UNSIGNED NOT NULL, INDEX `feed_id` (`feed_id`(125)))');
 			if ($query === false)
diff --git a/src/wp-includes/SimplePie/Enclosure.php b/src/wp-includes/SimplePie/Enclosure.php
index 32216d848c..3c6298eebd 100644
--- a/src/wp-includes/SimplePie/Enclosure.php
+++ b/src/wp-includes/SimplePie/Enclosure.php
@@ -1150,7 +1150,7 @@ class SimplePie_Enclosure
 		}
 
 		// If we encounter an unsupported mime-type, check the file extension and guess intelligently.
-		if (!in_array($type, array_merge($types_flash, $types_fmedia, $types_quicktime, $types_wmedia, $types_mp3)))
+		if (!in_array($type, array_merge($types_flash, $types_fmedia, $types_quicktime, $types_wmedia, $types_mp3), true))
 		{
 			switch (strtolower($this->get_extension()))
 			{
@@ -1275,23 +1275,23 @@ class SimplePie_Enclosure
 
 		if ($find_handler)
 		{
-			if (in_array($type, $types_flash))
+			if (in_array($type, $types_flash, true))
 			{
 				return 'flash';
 			}
-			elseif (in_array($type, $types_fmedia))
+			elseif (in_array($type, $types_fmedia, true))
 			{
 				return 'fmedia';
 			}
-			elseif (in_array($type, $types_quicktime))
+			elseif (in_array($type, $types_quicktime, true))
 			{
 				return 'quicktime';
 			}
-			elseif (in_array($type, $types_wmedia))
+			elseif (in_array($type, $types_wmedia, true))
 			{
 				return 'wmedia';
 			}
-			elseif (in_array($type, $types_mp3))
+			elseif (in_array($type, $types_mp3, true))
 			{
 				return 'mp3';
 			}
diff --git a/src/wp-includes/SimplePie/File.php b/src/wp-includes/SimplePie/File.php
index 90ad8196a6..c5a442e80d 100644
--- a/src/wp-includes/SimplePie/File.php
+++ b/src/wp-includes/SimplePie/File.php
@@ -138,7 +138,7 @@ class SimplePie_File
 						$this->headers = $parser->headers;
 						$this->body = trim($parser->body);
 						$this->status_code = $parser->status_code;
-						if ((in_array($this->status_code, array(300, 301, 302, 303, 307)) || $this->status_code > 307 && $this->status_code < 400) && isset($this->headers['location']) && $this->redirects < $redirects)
+						if ((in_array($this->status_code, array(300, 301, 302, 303, 307), true) || $this->status_code > 307 && $this->status_code < 400) && isset($this->headers['location']) && $this->redirects < $redirects)
 						{
 							$this->redirects++;
 							$location = SimplePie_Misc::absolutize_url($this->headers['location'], $url);
@@ -223,7 +223,7 @@ class SimplePie_File
 							$this->headers = $parser->headers;
 							$this->body = $parser->body;
 							$this->status_code = $parser->status_code;
-							if ((in_array($this->status_code, array(300, 301, 302, 303, 307)) || $this->status_code > 307 && $this->status_code < 400) && isset($this->headers['location']) && $this->redirects < $redirects)
+							if ((in_array($this->status_code, array(300, 301, 302, 303, 307), true) || $this->status_code > 307 && $this->status_code < 400) && isset($this->headers['location']) && $this->redirects < $redirects)
 							{
 								$this->redirects++;
 								$location = SimplePie_Misc::absolutize_url($this->headers['location'], $url);
diff --git a/src/wp-includes/SimplePie/Locator.php b/src/wp-includes/SimplePie/Locator.php
index a207df6fee..7aeeafbea6 100644
--- a/src/wp-includes/SimplePie/Locator.php
+++ b/src/wp-includes/SimplePie/Locator.php
@@ -159,7 +159,7 @@ class SimplePie_Locator
 				$mime_types[] = 'text/html';
 			}
 
-			return in_array($sniffed, $mime_types);
+			return in_array($sniffed, $mime_types, true);
 		}
 		elseif ($file->method & SIMPLEPIE_FILE_SOURCE_LOCAL)
 		{
@@ -244,7 +244,7 @@ class SimplePie_Locator
 					continue;
 				}
 
-				if (!in_array($href, $done) && in_array('feed', $rel) || (in_array('alternate', $rel) && !in_array('stylesheet', $rel) && $link->hasAttribute('type') && in_array(strtolower($this->registry->call('Misc', 'parse_mime', array($link->getAttribute('type')))), array('text/html', 'application/rss+xml', 'application/atom+xml'))) && !isset($feeds[$href]))
+				if (!in_array($href, $done, true) && in_array('feed', $rel, true) || (in_array('alternate', $rel, true) && !in_array('stylesheet', $rel, true) && $link->hasAttribute('type') && in_array(strtolower($this->registry->call('Misc', 'parse_mime', array($link->getAttribute('type')))), array('text/html', 'application/rss+xml', 'application/atom+xml'), true)) && !isset($feeds[$href]))
 				{
 					$this->checked_feeds++;
 					$headers = array(
@@ -356,7 +356,7 @@ class SimplePie_Locator
 					return null;
 				}
 				$rel_values = explode(' ', strtolower($link->getAttribute('rel')));
-				if (in_array($rel, $rel_values))
+				if (in_array($rel, $rel_values, true))
 				{
 					return $href;
 				}
@@ -373,7 +373,7 @@ class SimplePie_Locator
 			{
 				break;
 			}
-			if (in_array(strtolower(strrchr($value, '.')), array('.rss', '.rdf', '.atom', '.xml')))
+			if (in_array(strtolower(strrchr($value, '.')), array('.rss', '.rdf', '.atom', '.xml'), true))
 			{
 				$this->checked_feeds++;
 
diff --git a/src/wp-includes/SimplePie/Misc.php b/src/wp-includes/SimplePie/Misc.php
index a52498ac76..dcfd63a451 100644
--- a/src/wp-includes/SimplePie/Misc.php
+++ b/src/wp-includes/SimplePie/Misc.php
@@ -364,7 +364,7 @@ class SimplePie_Misc
 		}
 
 		// Check that the encoding is supported
-		if (!in_array($input, mb_list_encodings()))
+		if (!in_array($input, mb_list_encodings(), true))
 		{
 			return false;
 		}
@@ -1929,7 +1929,7 @@ class SimplePie_Misc
 				case 'xhtml':
 					return SIMPLEPIE_CONSTRUCT_XHTML;
 			}
-			if (in_array(substr($type, -4), array('+xml', '/xml')) || substr($type, 0, 5) === 'text/')
+			if (in_array(substr($type, -4), array('+xml', '/xml'), true) || substr($type, 0, 5) === 'text/')
 			{
 				return SIMPLEPIE_CONSTRUCT_NONE;
 			}
diff --git a/src/wp-includes/SimplePie/Parser.php b/src/wp-includes/SimplePie/Parser.php
index 4efdf41a71..e9956976ee 100644
--- a/src/wp-includes/SimplePie/Parser.php
+++ b/src/wp-includes/SimplePie/Parser.php
@@ -330,11 +330,11 @@ class SimplePie_Parser
 			$this->datas[] =& $this->data;
 			$this->data =& $this->data['child'][end($this->namespace)][end($this->element)][];
 			$this->data = array('data' => '', 'attribs' => $attribs, 'xml_base' => end($this->xml_base), 'xml_base_explicit' => end($this->xml_base_explicit), 'xml_lang' => end($this->xml_lang));
-			if ((end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_03 && in_array(end($this->element), array('title', 'tagline', 'copyright', 'info', 'summary', 'content')) && isset($attribs['']['mode']) && $attribs['']['mode'] === 'xml')
-			|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_10 && in_array(end($this->element), array('rights', 'subtitle', 'summary', 'info', 'title', 'content')) && isset($attribs['']['type']) && $attribs['']['type'] === 'xhtml')
-			|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_20 && in_array(end($this->element), array('title')))
-			|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_090 && in_array(end($this->element), array('title')))
-			|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_10 && in_array(end($this->element), array('title'))))
+			if ((end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_03 && in_array(end($this->element), array('title', 'tagline', 'copyright', 'info', 'summary', 'content'), true) && isset($attribs['']['mode']) && $attribs['']['mode'] === 'xml')
+			|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_ATOM_10 && in_array(end($this->element), array('rights', 'subtitle', 'summary', 'info', 'title', 'content'), true) && isset($attribs['']['type']) && $attribs['']['type'] === 'xhtml')
+			|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_20 && in_array(end($this->element), array('title'), true))
+			|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_090 && in_array(end($this->element), array('title'), true))
+			|| (end($this->namespace) === SIMPLEPIE_NAMESPACE_RSS_10 && in_array(end($this->element), array('title'), true)))
 			{
 				$this->current_xhtml_construct = 0;
 			}
@@ -358,7 +358,7 @@ class SimplePie_Parser
 		if ($this->current_xhtml_construct >= 0)
 		{
 			$this->current_xhtml_construct--;
-			if (end($this->namespace) === SIMPLEPIE_NAMESPACE_XHTML && !in_array(end($this->element), array('area', 'base', 'basefont', 'br', 'col', 'frame', 'hr', 'img', 'input', 'isindex', 'link', 'meta', 'param')))
+			if (end($this->namespace) === SIMPLEPIE_NAMESPACE_XHTML && !in_array(end($this->element), array('area', 'base', 'basefont', 'br', 'col', 'frame', 'hr', 'img', 'input', 'isindex', 'link', 'meta', 'param'), true))
 			{
 				$this->data['data'] .= '</' . end($this->element) . '>';
 			}
@@ -418,7 +418,7 @@ class SimplePie_Parser
 		$name = '';
 		$link = '';
 		// Check if h-card is set and pass that information on in the link.
-		if (isset($data['type']) && in_array('h-card', $data['type'])) {
+		if (isset($data['type']) && in_array('h-card', $data['type'], true)) {
 			if (isset($data['properties']['name'][0])) {
 				$name = $data['properties']['name'][0];
 			}
@@ -448,24 +448,24 @@ class SimplePie_Parser
 		// First look for an h-feed.
 		$h_feed = array();
 		foreach ($mf['items'] as $mf_item) {
-			if (in_array('h-feed', $mf_item['type'])) {
+			if (in_array('h-feed', $mf_item['type'], true)) {
 				$h_feed = $mf_item;
 				break;
 			}
 			// Also look for h-feed or h-entry in the children of each top level item.
 			if (!isset($mf_item['children'][0]['type'])) continue;
-			if (in_array('h-feed', $mf_item['children'][0]['type'])) {
+			if (in_array('h-feed', $mf_item['children'][0]['type'], true)) {
 				$h_feed = $mf_item['children'][0];
 				// In this case the parent of the h-feed may be an h-card, so use it as
 				// the feed_author.
-				if (in_array('h-card', $mf_item['type'])) $feed_author = $mf_item;
+				if (in_array('h-card', $mf_item['type'], true)) $feed_author = $mf_item;
 				break;
 			}
-			else if (in_array('h-entry', $mf_item['children'][0]['type'])) {
+			else if (in_array('h-entry', $mf_item['children'][0]['type'], true)) {
 				$entries = $mf_item['children'];
 				// In this case the parent of the h-entry list may be an h-card, so use
 				// it as the feed_author.
-				if (in_array('h-card', $mf_item['type'])) $feed_author = $mf_item;
+				if (in_array('h-card', $mf_item['type'], true)) $feed_author = $mf_item;
 				break;
 			}
 		}
@@ -484,7 +484,7 @@ class SimplePie_Parser
 		}
 		for ($i = 0; $i < count($entries); $i++) {
 			$entry = $entries[$i];
-			if (in_array('h-entry', $entry['type'])) {
+			if (in_array('h-entry', $entry['type'], true)) {
 				$item = array();
 				$title = '';
 				$description = '';
@@ -520,12 +520,12 @@ class SimplePie_Parser
 							$mf = Mf2\fetch($author);
 							foreach ($mf['items'] as $hcard) {
 								// Only interested in an h-card by itself in this case.
-								if (!in_array('h-card', $hcard['type'])) {
+								if (!in_array('h-card', $hcard['type'], true)) {
 									continue;
 								}
 								// It must have a url property matching what we fetched.
 								if (!isset($hcard['properties']['url']) ||
-										!(in_array($author, $hcard['properties']['url']))) {
+										!(in_array($author, $hcard['properties']['url'], true))) {
 									continue;
 								}
 								// Save parse_hcard the trouble of finding the correct url.
diff --git a/src/wp-includes/SimplePie/Registry.php b/src/wp-includes/SimplePie/Registry.php
index bf3baf1793..a2862bf261 100644
--- a/src/wp-includes/SimplePie/Registry.php
+++ b/src/wp-includes/SimplePie/Registry.php
@@ -160,7 +160,7 @@ class SimplePie_Registry
 	{
 		$class = $this->get_class($type);
 
-		if (in_array($class, $this->legacy))
+		if (in_array($class, $this->legacy, true))
 		{
 			switch ($type)
 			{
@@ -202,7 +202,7 @@ class SimplePie_Registry
 	{
 		$class = $this->get_class($type);
 
-		if (in_array($class, $this->legacy))
+		if (in_array($class, $this->legacy, true))
 		{
 			switch ($type)
 			{
diff --git a/src/wp-includes/SimplePie/Sanitize.php b/src/wp-includes/SimplePie/Sanitize.php
index 35838032fc..dbeefe1784 100644
--- a/src/wp-includes/SimplePie/Sanitize.php
+++ b/src/wp-includes/SimplePie/Sanitize.php
@@ -431,7 +431,7 @@ class SimplePie_Sanitize
 			$attributes = array($attributes);
 		}
 
-		if (!is_array($this->strip_htmltags) || !in_array($tag, $this->strip_htmltags))
+		if (!is_array($this->strip_htmltags) || !in_array($tag, $this->strip_htmltags, true))
 		{
 			$elements = $document->getElementsByTagName($tag);
 			foreach ($elements as $element)
@@ -455,7 +455,7 @@ class SimplePie_Sanitize
 	{
 		if ($this->encode_instead_of_strip)
 		{
-			if (isset($match[4]) && !in_array(strtolower($match[1]), array('script', 'style')))
+			if (isset($match[4]) && !in_array(strtolower($match[1]), array('script', 'style'), true))
 			{
 				$match[1] = htmlspecialchars($match[1], ENT_COMPAT, 'UTF-8');
 				$match[2] = htmlspecialchars($match[2], ENT_COMPAT, 'UTF-8');
@@ -466,7 +466,7 @@ class SimplePie_Sanitize
 				return htmlspecialchars($match[0], ENT_COMPAT, 'UTF-8');
 			}
 		}
-		elseif (isset($match[4]) && !in_array(strtolower($match[1]), array('script', 'style')))
+		elseif (isset($match[4]) && !in_array(strtolower($match[1]), array('script', 'style'), true))
 		{
 			return $match[4];
 		}
@@ -486,7 +486,7 @@ class SimplePie_Sanitize
 				$fragment = $document->createDocumentFragment();
 
 				// For elements which aren't script or style, include the tag itself
-				if (!in_array($tag, array('script', 'style')))
+				if (!in_array($tag, array('script', 'style'), true))
 				{
 					$text = '<' . $tag;
 					if ($element->hasAttributes())
@@ -524,7 +524,7 @@ class SimplePie_Sanitize
 					$fragment->appendChild($child);
 				}
 
-				if (!in_array($tag, array('script', 'style')))
+				if (!in_array($tag, array('script', 'style'), true))
 				{
 					$fragment->appendChild(new DOMText('</' . $tag . '>'));
 				}
@@ -534,7 +534,7 @@ class SimplePie_Sanitize
 
 			return;
 		}
-		elseif (in_array($tag, array('script', 'style')))
+		elseif (in_array($tag, array('script', 'style'), true))
 		{
 			foreach ($elements as $element)
 			{
diff --git a/src/wp-includes/sodium_compat/src/Compat.php b/src/wp-includes/sodium_compat/src/Compat.php
index b2ccd21ddf..70ba6d77cd 100644
--- a/src/wp-includes/sodium_compat/src/Compat.php
+++ b/src/wp-includes/sodium_compat/src/Compat.php
@@ -323,7 +323,7 @@ class ParagonIE_Sodium_Compat
             // OpenSSL isn't installed
             return false;
         }
-        return (bool) in_array('aes-256-gcm', openssl_get_cipher_methods());
+        return (bool) in_array('aes-256-gcm', openssl_get_cipher_methods(), true);
     }
 
     /**
diff --git a/src/wp-includes/sodium_compat/src/Core/Util.php b/src/wp-includes/sodium_compat/src/Core/Util.php
index bde9df1106..262b20cec3 100644
--- a/src/wp-includes/sodium_compat/src/Core/Util.php
+++ b/src/wp-includes/sodium_compat/src/Core/Util.php
@@ -200,7 +200,7 @@ abstract class ParagonIE_Sodium_Core_Util
             case 'integer':
             case 'int':
                 $allow = array('int', 'integer');
-                if (!in_array($type, $allow)) {
+                if (!in_array($type, $allow, true)) {
                     throw new TypeError('Argument ' . $argumentIndex . ' must be an integer, ' . $realType . ' given.');
                 }
                 $mixedVar = (int) $mixedVar;
@@ -208,7 +208,7 @@ abstract class ParagonIE_Sodium_Core_Util
             case 'boolean':
             case 'bool':
                 $allow = array('bool', 'boolean');
-                if (!in_array($type, $allow)) {
+                if (!in_array($type, $allow, true)) {
                     throw new TypeError('Argument ' . $argumentIndex . ' must be a boolean, ' . $realType . ' given.');
                 }
                 $mixedVar = (bool) $mixedVar;
@@ -223,7 +223,7 @@ abstract class ParagonIE_Sodium_Core_Util
             case 'double':
             case 'float':
                 $allow = array('decimal', 'double', 'float');
-                if (!in_array($type, $allow)) {
+                if (!in_array($type, $allow, true)) {
                     throw new TypeError('Argument ' . $argumentIndex . ' must be a float, ' . $realType . ' given.');
                 }
                 $mixedVar = (float) $mixedVar;
