From addcd21cc08bef43e3baa1a16a3e05c490891c98 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 27 May 2010 04:14:35 +0000 Subject: [PATCH] Fix order of params to strpos. props ampt, fixes #12115. git-svn-id: http://svn.automattic.com/wordpress/trunk@14976 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 844ff4abd..a09b31676 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -272,7 +272,7 @@ class WP_oEmbed { * @return string Possibly modified $html */ function _strip_newlines( $html, $data, $url ) { - if ( false !== strpos( "\n", $html ) ) + if ( false !== strpos( $html, "\n" ) ) $html = str_replace( array( "\r\n", "\n" ), '', $html ); return $html;