From 4bcefca0ca8c8deee2fed0247b6cd0742bc5a654 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@14976 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 844ff4abd7..a09b316768 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;