From bf4c6df0a975ff6df06da79f56e12e3f08883a39 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 1 Jun 2011 00:15:02 +0000 Subject: [PATCH] rm only core usage of in_string(), I think it's silly --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index a7468e921a..073dd997bd 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -699,7 +699,7 @@ class Article { if ( $text === false ) { $text = $this->getRawText(); } - return in_string( ',', $text ); + return strpos( $text, ',' ) !== false; case 'link': if ( $editInfo ) { // ParserOutput::getLinks() is a 2D array of page links, so -- 2.20.1