From 0efd852117058828baa1e78abc9ef5e7d7f3f46b Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 12 Sep 2014 22:53:04 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@29742 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-oembed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-oembed.php b/src/wp-includes/class-oembed.php index b409298ecd..e96f08a29c 100644 --- a/src/wp-includes/class-oembed.php +++ b/src/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 );