From b67ba6fb1c02c9faf2da9751181ac0316ac69316 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 12 Sep 2014 22:54:16 +0000 Subject: [PATCH] `WP_oEmbed::_strip_newlines` is called as a filter callback for `oembed_dataparse`, must be public. It was marked as private for fun in [14109] and then made `private` officially in [28507]. Fixes #29647 for trunk. Built from https://develop.svn.wordpress.org/trunk@29742 git-svn-id: http://core.svn.wordpress.org/trunk@29516 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index b409298ecd..e96f08a29c 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -544,13 +544,13 @@ class WP_oEmbed { /** * Strip any new lines from the HTML. * - * @access private + * @access public * @param string $html Existing HTML. * @param object $data Data object from WP_oEmbed::data2html() * @param string $url The original URL passed to oEmbed. * @return string Possibly modified $html */ - private function _strip_newlines( $html, $data, $url ) { + public function _strip_newlines( $html, $data, $url ) { if ( false !== strpos( $html, "\n" ) ) $html = str_replace( array( "\r\n", "\n" ), '', $html );